Skip to content

Instantly share code, notes, and snippets.

@paveltretyakovru
Last active May 21, 2024 07:27
Show Gist options
  • Save paveltretyakovru/79fc42f394ab96da222a5ce31ea7db64 to your computer and use it in GitHub Desktop.
Save paveltretyakovru/79fc42f394ab96da222a5ce31ea7db64 to your computer and use it in GitHub Desktop.
Автоматическое подключение d.ts файлов к CRA приложению
{
// ...
"include": ["src", "src/core/types/*.d.ts"]
}
// 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