|
|
|
|
|
by ht85
1361 days ago
|
|
Here is a minimum "repro" of your use case: tsconfig.json {
"include": ["index.d.ts"],
"compilerOptions": {
"target": "es2015",
"lib": ["es2015", "dom"],
"moduleResolution": "node",
"allowSyntheticDefaultImports": true
}
}
index.d.ts import * as PIXI from 'pixi.js'
declare global {
interface Window {
PIXI: typeof PIXI
}
}
index.ts console.log(window.PIXI)
There is still an import but because it is in the .d.ts file it won't be included in the runtime code. |
|