diff --git a/src/cubing/alg/parser/parser-shim.d.ts b/src/cubing/alg/parser/parser-shim.d.ts deleted file mode 100644 index 5d602a8c6..000000000 --- a/src/cubing/alg/parser/parser-shim.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { AlgJSON } from "../json"; - -export function pegParseAlgJSON(s: string): AlgJSON; diff --git a/src/cubing/alg/parser/parser-shim.js b/src/cubing/alg/parser/parser-shim.js deleted file mode 100644 index aa65c9ac9..000000000 --- a/src/cubing/alg/parser/parser-shim.js +++ /dev/null @@ -1,3 +0,0 @@ -// Note: this file exists so that `parse` doesn't show up for autocompletion (by -// avoiding a `parser-pegjs.d.ts` file that exports `parse`.) -export { parse as pegParseAlgJSON } from "./parser-pegjs"; diff --git a/src/cubing/alg/parser/parser-shim.ts b/src/cubing/alg/parser/parser-shim.ts new file mode 100644 index 000000000..0812c83c2 --- /dev/null +++ b/src/cubing/alg/parser/parser-shim.ts @@ -0,0 +1,11 @@ +// Note: this file exists so that `parse` doesn't show up for autocompletion (by +// avoiding a `parser-pegjs.d.ts` file that exports `parse`.) + +import { AlgJSON } from "../json"; +// eslint-disable-next-line @typescript-eslint/ban-ts-comment +// @ts-ignore +import { parse } from "./parser-pegjs"; + +const pegParseAlgJSON: (s: string) => AlgJSON = parse; + +export { pegParseAlgJSON }; diff --git a/src/cubing/kpuzzle/parser/parser-shim.d.ts b/src/cubing/kpuzzle/parser/parser-shim.d.ts deleted file mode 100644 index dbc160b3e..000000000 --- a/src/cubing/kpuzzle/parser/parser-shim.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { KPuzzleDefinition } from "../definition_types"; - -export function pegParseKPuzzleDefinition(s: string): KPuzzleDefinition; diff --git a/src/cubing/kpuzzle/parser/parser-shim.js b/src/cubing/kpuzzle/parser/parser-shim.js deleted file mode 100644 index cf5b40a3f..000000000 --- a/src/cubing/kpuzzle/parser/parser-shim.js +++ /dev/null @@ -1,3 +0,0 @@ -// Note: this file exists so that `parse` doesn't show up for autocompletion (by -// avoiding a `parser-pegjs.d.ts` file that exports `parse`.) -export { parse as pegParseKPuzzleDefinition } from "./parser-pegjs"; diff --git a/src/cubing/kpuzzle/parser/parser-shim.ts b/src/cubing/kpuzzle/parser/parser-shim.ts new file mode 100644 index 000000000..7a13bc242 --- /dev/null +++ b/src/cubing/kpuzzle/parser/parser-shim.ts @@ -0,0 +1,11 @@ +// Note: this file exists so that `parse` doesn't show up for autocompletion (by +// avoiding a `parser-pegjs.d.ts` file that exports `parse`.) + +import { KPuzzleDefinition } from "../definition_types"; +// eslint-disable-next-line @typescript-eslint/ban-ts-comment +// @ts-ignore +import { parse } from "./parser-pegjs"; + +const pegParseKPuzzleDefinition: (s: string) => KPuzzleDefinition = parse; + +export { pegParseKPuzzleDefinition };