-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7ba6bb5
commit e18e6ac
Showing
6 changed files
with
45 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
language: node_js | ||
node_js: | ||
- '11' | ||
- '10' | ||
- '8' | ||
- '6' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/** | ||
List of the Node.js builtin modules. | ||
@example | ||
``` | ||
import builtinModules = require('builtin-modules'); | ||
console.log(builtinModules); | ||
//=> ['assert', 'buffer', …] | ||
``` | ||
*/ | ||
declare const builtinModules: readonly string[]; | ||
|
||
export = builtinModules; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import {expectType, expectError} from 'tsd'; | ||
import builtinModules = require('.'); | ||
import builtinModulesStatic = require ('./static'); | ||
|
||
expectType<readonly string[]>(builtinModules); | ||
expectError<string[]>(builtinModules); | ||
|
||
expectType<readonly string[]>(builtinModulesStatic); | ||
expectError<string[]>(builtinModulesStatic); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/** | ||
Static list of the Node.js builtin modules. | ||
@example | ||
``` | ||
import builtinModulesStatic = require('builtin-modules/static'); | ||
console.log(builtinModulesStatic); | ||
//=> ['assert', 'buffer', …] | ||
``` | ||
*/ | ||
declare const builtinModulesStatic: readonly string[]; | ||
|
||
export = builtinModulesStatic; |