Skip to content

Commit 6814012

Browse files
committed
Add documentation for ignoreWarnings
1 parent 46efcfe commit 6814012

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,14 @@ You can set options by passing them in with the query string.
5454
loaders: [
5555
{
5656
test: /\.ts$/,
57-
loader: 'typescript-simple-loader?compiler=ntypescript&configFile=tsconfig.json'
57+
loader: 'typescript-simple-loader?compiler=ntypescript&configFile=tsconfig.json&ignoreWarnings[]=2304'
5858
}
5959
]
6060
```
6161

6262
* **compiler** Set a custom TypeScript compiler compatible with `typescript@>=1.5-alpha`
6363
* **configFile** Manually set the location of the `tsconfig.json` file
64+
* **ignoreWarnings** Set an array of TypeScript diagnostic codes to ignore
6465

6566
## License
6667

0 commit comments

Comments
 (0)