-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
Issue
Typescript declaration (d.ts)
missing resulting compiler error when using Typescript.
Could not find a declaration file for module '@sketchfab/viewer-api'. '/node_modules/@sketchfab/viewer-api/viewer-api.js' implicitly has an 'any' type.
Try `npm i --save-dev @types/sketchfab__viewer-api` if it exists or add a new declaration (.d.ts) file containing `declare module '@sketchfab/viewer-api';`ts(7016)
Solution
In order to properly support typescript, we need to add type declaration for this library to fix compiler error and type check.
Workaround
Add // ts-ignore
before import line to omit type check.
markadrake, AndreaPontrandolfo and JeffreyMoerman
Metadata
Metadata
Assignees
Labels
No labels