We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6e46a1e + ffadb24 commit d99b7d5Copy full SHA for d99b7d5
src/index-web.ts
@@ -2,7 +2,7 @@ import buildReferenceResolver from "./reference-resolver";
2
import fetch from "isomorphic-fetch";
3
4
export default buildReferenceResolver(fetch, {
5
- access: () => Promise.resolve(false),
6
- readFile: () => Promise.resolve(""),
+ access: (a: any, b: any, cb: (e: Error) => any) => cb(new Error("cant resolve file refs in a browser... yet")),
+ readFile: (a: any, b: any, cb: () => any) => { return cb(); },
7
constants: { F_OK: 0, R_OK: 0 } //tslint:disable-line
8
});
0 commit comments