Last active
May 21, 2024 07:27
-
-
Save paveltretyakovru/79fc42f394ab96da222a5ce31ea7db64 to your computer and use it in GitHub Desktop.
Автоматическое подключение d.ts файлов к CRA приложению
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
{ | |
// ... | |
"include": ["src", "src/core/types/*.d.ts"] | |
} |
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
// src/core/types/window.d.ts | |
declare global { | |
interface Window { | |
// eslint-disable-next-line @typescript-eslint/no-explicit-any | |
__env: any; | |
} | |
} | |
// ... IMPORTANT | |
export {}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment