Closed Rechdan closed 4 years ago
It's already declared, but it has trouble finding it for some reason. 🤷♂️
If you import from gsap
at least one time, it will find the declarations, or you can specify where the declarations are in your tsconfig.
{
"compilerOptions": {
...
},
"files": [
"node_modules/gsap/types/index.d.ts"
]
}
It's already declared, but it has trouble finding it for some reason. 🤷♂️
If you import from
gsap
at least one time, it will find the declarations, or you can specify where the declarations are in your tsconfig.{ "compilerOptions": { ... }, "files": [ "node_modules/gsap/types/index.d.ts" ] }
Don't knew that hack, thanks for sharing it!
I was having issues with "gsap/all" being not declared, so I made this declaration file:
Not sure if it really covers everything, I copied and modified the content from all.js, but now VS Code is recognizing it 😁