Skip to content

Commit

Permalink
[NodeJS] Support 'typesVersions' in node/v6 through node/v9 (#34678)
Browse files Browse the repository at this point in the history
* Split node/v8 and node/v9

* Split node/v7 and add typesVersions

* Split node/v6 and add typesVersions

* Revert major file split but preserve 'typesVersions' support for v6-v9
  • Loading branch information
rbuckton committed Apr 29, 2019
1 parent 61876df commit b1d706c
Show file tree
Hide file tree
Showing 33 changed files with 37,911 additions and 23,993 deletions.
4,430 changes: 4,430 additions & 0 deletions types/node/v6/base.d.ts

Large diffs are not rendered by default.

4,443 changes: 13 additions & 4,430 deletions types/node/v6/index.d.ts

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions types/node/v6/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"private": true,
"types": "index",
"typesVersions": {
">=3.2.0-0": {
"*": [
"ts3.2/*"
]
}
}
}
15 changes: 15 additions & 0 deletions types/node/v6/ts3.2/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// NOTE: These definitions support NodeJS and TypeScript 3.2.

// NOTE: TypeScript version-specific augmentations can be found in the following paths:
// - ~/base.d.ts - Shared definitions common to all TypeScript versions
// - ~/index.d.ts - Definitions specific to TypeScript 2.1
// - ~/ts3.2/index.d.ts - Definitions specific to TypeScript 3.2

// Reference required types from the default lib:
/// <reference lib="es2015" />

// Base definitions for all NodeJS modules that are not specific to any version of TypeScript:
// tslint:disable-next-line:no-bad-reference
/// <reference path="../base.d.ts" />

// TypeScript 3.2-specific augmentations:

0 comments on commit b1d706c

Please sign in to comment.