Skip to content

Commit 4d821f4

Browse files
itPiligrimsanjayaksaxena
authored andcommitted
Add Typescript section in readme
1 parent 8dbb352 commit 4d821f4

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,18 @@ The [wink-eng-lite-web-model](https://github.com/winkjs/wink-eng-lite-web-model)
6767

6868
The second command installs the [wink-eng-lite-model](https://github.com/winkjs/wink-eng-lite-model), which works with Node.js version 14 or 12.
6969

70+
### How to config tsconfig.json in TypeScript projects
71+
72+
Enable [esModuleInterop](https://www.typescriptlang.org/tsconfig#esModuleInterop) and [allowSyntheticDefaultImports](https://www.typescriptlang.org/tsconfig#allowSyntheticDefaultImports) in tsconfig.json
73+
74+
```
75+
"compilerOptions": {
76+
"esModuleInterop": true,
77+
"allowSyntheticDefaultImports": true,
78+
...
79+
}
80+
```
81+
7082
### How to install for Web Browser
7183
If you’re using winkNLP in the browser use the [wink-eng-lite-web-model](https://www.npmjs.com/package/wink-eng-lite-web-model). Learn about its installation and usage in our [guide to using winkNLP in the browser](https://winkjs.org/wink-nlp/wink-nlp-in-browsers.html). Explore **[winkNLP recipes](https://observablehq.com/collection/@winkjs/winknlp-recipes)** on [Observable](https://observablehq.com/) for live browser based examples.
7284

0 commit comments

Comments
 (0)