[node] Add definition for Node.js v8#17027
[node] Add definition for Node.js v8#17027minestarks merged 1 commit intoDefinitelyTyped:masterfrom ikokostya:node-8
Conversation
|
types/node/index.d.ts to authors (@DefinitelyTyped/DefinitelyTyped @parambirs @robdesideri @tellnes @WilcoBakker Microsoft TypeScript (account can't be detected)). Could you review this PR? Checklist
types/node/v7/index.d.ts Checklist
|
|
See #16860. |
|
@Andy-MS Now users can add features to declaration for Node.js v7 which doesn't exist in Node.js v7 runtime. There are several problems:
If separated issue (#16860) for Node.js v8 exists, why pull request with util.promisify was merged? |
|
@ikokostya This solution doesn't seem solve broken runtime anyway cause there are plenty modules that just referencing the latest |
|
So @yuit @Andy-MS what we wait here? Could you provide TODO list of necessary changes for Node.js 8 #16860 (comment)? |
|
@Andy-MS to close the loop. I don't see a reason not to merge this. It'll keep people from adding v8 features to v7 typings. Any objections? |
|
It seems this has not been published to @types/node npm package yet? The latest version of that package is 7.0.31 |
|
@magnushiie check again, it's up |
|
Thanks! |
[node] Add definition for Node.js v8
List of changes:
types/node/index.d.tstotypes/node/v7/index.d.tsutil.promisify(introduced by [types/node] Add promisify to util [wip] #16946) fromv7/index.d.ts, because this function is available since Node.js v8.types/node/index.d.tsfor Node.js v8 - increase the version number in the header.compilerOptions.libtoes6intsconfig.jsonlike intypes/node/v6/tsconfig.json.Please fill in this template.
npm run lint package-name(ortscif notslint.jsonis present).Select one of these and delete the others:
If changing an existing definition:
tslint.jsoncontaining{ "extends": "dtslint/dt.json" }.