Skip to content

Commit d8079af

Browse files
recommend minimum target setting in tsconfig.json
1 parent ac18fce commit d8079af

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/pages/docs/resources/typescript.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ The below steps will help you get up and running with TypeScript in your Greenwo
1818

1919
1. You will need to use Node **>= 22.6.0** and set the `--experimental-strip-types` flag
2020
1. Install TypeScript into your project, e.g. `npm i typescript --save-dev`
21-
1. Create a _tsconfig.json_ file at the root of your project with these minimum configuration settings. We recommend adding the [`erasableSyntaxOnly` setting](https://www.typescriptlang.org/tsconfig/#erasableSyntaxOnly)
21+
1. Create a _tsconfig.json_ file at the root of your project with these minimum configuration settings. We also recommend adding the [`erasableSyntaxOnly` setting](https://www.typescriptlang.org/tsconfig/#erasableSyntaxOnly)
2222

2323
<!-- prettier-ignore-start -->
2424

@@ -27,6 +27,7 @@ The below steps will help you get up and running with TypeScript in your Greenwo
2727
```json
2828
{
2929
"compilerOptions": {
30+
"target": "es2015",
3031
"module": "preserve",
3132
"moduleResolution": "bundler",
3233
"allowImportingTsExtensions": true,

0 commit comments

Comments
 (0)