Thanks to visit codestin.com Credit goes to github.com
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.
1 parent 840d42f commit 3c1bb1cCopy full SHA for 3c1bb1c
packages/Main/src/global.d.ts
@@ -0,0 +1,10 @@
1
+// Consider all `import '*.glsl'` as imports of modules with a default string
2
+// export. This is coherent with the behavior of the babel compiler.
3
+declare module '*.glsl' {
4
+ const glsl: string;
5
+ export default glsl;
6
+}
7
+
8
+// Declare the external global variable __DEBUG__. This is replaced by either
9
+// true or false during the compilation step.
10
+declare const __DEBUG__: boolean;
packages/Main/tsconfig.json
@@ -1,6 +1,6 @@
{
"extends": "../../tsconfig.json",
- "include": [ "src/Main.js" ],
+ "include": [ "src/Main.js", "src/global.d.ts" ],
"exclude": [ "lib" ],
"compilerOptions": {
"declaration": true,
0 commit comments