Last active
June 21, 2022 14:28
-
-
Save Karytonn/3775a231529f00d306cba634a528a917 to your computer and use it in GitHub Desktop.
TypeScript fake declaration type
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"compilerOptions": { | |
.... | |
}, | |
"types": [...] | |
}, | |
// Include the source of fake type declaration | |
"include": ["src", "type.lib-name-here.ts"], | |
"exclude": [...] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
declare module 'lib-name-here' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment