MCPcopy Create free account
hub / github.com/Snapchat/dagger-browser / readFileAsync

Method readFileAsync

browser/src/models/GraphManager.tsx:70–80  ·  view source on GitHub ↗
(file: File)

Source from the content-addressed store, hash-verified

68 }
69
70 async readFileAsync(file: File): Promise<string> {
71 return new Promise((resolve, reject) => {
72 const reader = new FileReader();
73 reader.onload = () => {
74 resolve(reader.result as string);
75 };
76
77 reader.onerror = reject;
78 reader.readAsText(file);
79 })
80 }
81
82 getMatches(
83 componentName: string | undefined,

Callers 1

loadFileMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected