MCPcopy Create free account
hub / github.com/CoderLine/alphaTab / loadFileAsJson

Method loadFileAsJson

packages/alphatab/test/TestPlatform.ts:67–70  ·  view source on GitHub ↗

* @target web * @partial

(path: string)

Source from the content-addressed store, hash-verified

65 * @partial
66 */
67 public static async loadFileAsJson<T>(path: string): Promise<T> {
68 const data = await TestPlatform.loadFile(path);
69 return JSON.parse(IOHelper.toString(data, 'UTF-8'));
70 }
71
72 public static async loadFileAsString(path: string): Promise<string> {
73 const data = await TestPlatform.loadFile(path);

Callers

nothing calls this directly

Calls 3

loadFileMethod · 0.45
parseMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected