From 59df7fdc254bf27c149ced6a34e015bacc859f2b Mon Sep 17 00:00:00 2001 From: Frank Johnson Date: Sun, 19 Sep 2021 01:07:46 -0400 Subject: [PATCH] Added globals.d.ts --- app/web/src/globals.d.ts | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 app/web/src/globals.d.ts diff --git a/app/web/src/globals.d.ts b/app/web/src/globals.d.ts new file mode 100644 index 0000000..108e045 --- /dev/null +++ b/app/web/src/globals.d.ts @@ -0,0 +1,7 @@ +// While the raw-loader Webpack plugin actually makes these imports work, this +// eliminates noisy TypeScript errors by registering these file endings as types. +// Learned this method of registering modules from https://stackoverflow.com/a/57444766 +declare module "*.md"; +declare module "*.SCAD"; +declare module "*.py"; +declare module "*.jscad"; \ No newline at end of file