Skip to content

Commit

Permalink
docs(advanced): improve docs about global.d.ts (#16631)
Browse files Browse the repository at this point in the history
  • Loading branch information
mxschmitt authored Aug 18, 2022
1 parent 3843a15 commit d7ba592
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/src/test-advanced-js.md
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,9 @@ test('numeric ranges', () => {
});
```

For TypeScript, also add the following to `global.d.ts`. You don't need it for JavaScript.
For TypeScript, also add the following to your [`global.d.ts`](https://www.typescriptlang.org/docs/handbook/declaration-files/templates/global-d-ts.html). If it does not exit, you need to create it inside your repository. Make sure that your `global.d.ts` gets included inside your `tsconfig.json` via the `include` or `compilerOptions.typeRoots` option so that your IDE will pick it up.

You don't need it for JavaScript.

```js
// global.d.ts
Expand Down

0 comments on commit d7ba592

Please sign in to comment.