Skip to content

Commit

Permalink
Update _includes/markdown/Typescript.md
Browse files Browse the repository at this point in the history
Co-authored-by: Antonio Laguna <sombragriselros@gmail.com>
  • Loading branch information
nicholasio and Antonio-Laguna authored Jun 3, 2024
1 parent 9075ea3 commit 986e34b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _includes/markdown/Typescript.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ If the library you're using does not ship types, check if there is type informat

### Global types definitions

**Do not** put the application types in the global scope just to avoid importing them. You may only create global type definitions when needing to extend global types (e.g `window` object).
**Do not** put the application types in the global scope just to avoid importing them. You may only create global type definitions when needing to extend global types (e.g. `window` object).

To extend global types create a `global.d.ts` file and include them in your `tsconfig.json` in the `include` config option. Here's an example for a Next.js project:

Expand Down

0 comments on commit 986e34b

Please sign in to comment.