Update comment on TS2.1 (#13883)

This commit is contained in:
Andy
2017-01-10 06:29:13 -08:00
committed by GitHub
parent c0a3889ed8
commit a13492cbe3
+2 -3
View File
@@ -206,7 +206,7 @@ Here are the [currently requested definitions](https://github.com/DefinitelyType
If types are part of a web standard, they should be contributed to [TSJS-lib-generator](https://github.com/Microsoft/TSJS-lib-generator) so that they can become part of the default `lib.dom.d.ts`.
### A package uses `export =`, but I prefer to use default imports. Can I change `export =` to `export default`?
#### A package uses `export =`, but I prefer to use default imports. Can I change `export =` to `export default`?
If default imports work in your environment, consider turning on the [`--allowSyntheticDefaultImports`](http://www.typescriptlang.org/docs/handbook/compiler-options.html) compiler option.
Do not change the type definition if it is accurate.
@@ -214,8 +214,7 @@ For an NPM package, `export =` is accurate if `node -p 'require("foo")'` is the
#### I want to use features from TypeScript 2.1.
Then you will have to add a comment to your definition header: `// TypeScript Version: 2.1`.
If it is merged before January 7, it will be published as a prerelease version, such as `4.3.0-next.0`.
Then you will have to add a comment to the last line of your definition header (after `// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped`): `// TypeScript Version: 2.1`.
#### I want to add a DOM API not present in TypeScript by default.