diff --git a/types/caller/caller-tests.ts b/types/caller/caller-tests.ts new file mode 100644 index 0000000000..81d8d64606 --- /dev/null +++ b/types/caller/caller-tests.ts @@ -0,0 +1,4 @@ +import caller = require('caller'); + +const callerFile: string = caller(); +const callerFile2: string = caller(1); diff --git a/types/caller/index.d.ts b/types/caller/index.d.ts new file mode 100644 index 0000000000..f09b6f129b --- /dev/null +++ b/types/caller/index.d.ts @@ -0,0 +1,8 @@ +// Type definitions for caller 1.0 +// Project: https://github.com/totherik/caller +// Definitions by: Ignocide +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +declare function caller(depth?: number): string; + +export = caller; diff --git a/types/caller/tsconfig.json b/types/caller/tsconfig.json new file mode 100644 index 0000000000..80ae4b956e --- /dev/null +++ b/types/caller/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", + "caller-tests.ts" + ] +} diff --git a/types/caller/tslint.json b/types/caller/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/caller/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" }