Error thrown by the constructor when given a ref that isn't a string
import Dereferencer, { NonStringRefError } from "@json-schema-tools/dereferencer";try { const dereffer = new Dereferencer({}); }catch(e) { if (e instanceof NonStringRefError) { ... }} Copy
import Dereferencer, { NonStringRefError } from "@json-schema-tools/dereferencer";try { const dereffer = new Dereferencer({}); }catch(e) { if (e instanceof NonStringRefError) { ... }}
Error thrown by the constructor when given a ref that isn't a string
Example