diff --git a/types/global-modules/global-modules-tests.ts b/types/global-modules/global-modules-tests.ts new file mode 100644 index 0000000000..f392934f97 --- /dev/null +++ b/types/global-modules/global-modules-tests.ts @@ -0,0 +1,3 @@ +import globalModules = require('global-modules'); + +globalModules; // $ExpectType string diff --git a/types/global-modules/index.d.ts b/types/global-modules/index.d.ts new file mode 100644 index 0000000000..2f92021b88 --- /dev/null +++ b/types/global-modules/index.d.ts @@ -0,0 +1,7 @@ +// Type definitions for global-modules 2.0 +// Project: https://github.com/jonschlinkert/global-modules +// Definitions by: BendingBender +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +export = globalModules; +declare const globalModules: string; diff --git a/types/global-modules/tsconfig.json b/types/global-modules/tsconfig.json new file mode 100644 index 0000000000..5333047d4a --- /dev/null +++ b/types/global-modules/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "global-modules-tests.ts" + ] +} diff --git a/types/global-modules/tslint.json b/types/global-modules/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/global-modules/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" }