Debian Codegraph @

merge/src/errors.ts

raw symbols SCIP
1 export const Errors = {
2 MissingDefaultExport: (file: string) =>
3 new Error(`A Fig spec file should \`export default\` a completion spec object (file: ${file})`),
4 NoDirectDefaultExport: (file: string) =>
5 new Error(
6 `The completion spec object should not be default exported directly, but it needs to be assigned to a variable before (file: ${file})`
7 ),
8 DefaultExportShouldBeAnIdentifier: (file: string) =>
9 new Error(
10 `The default export of a Fig spec file should be an identifier referencing the completion spec object (file: ${file})`
11 ),
12 MissingSpecVariableDeclaration: (file: string) =>
13 new Error(
14 `The spec file must contain exactly one variable declaration containing the spec object (file: ${file})`
15 ),
16 } as const;