mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Add get-caller-file
This commit is contained in:
parent
8058968995
commit
c3ae41c571
4
types/get-caller-file/get-caller-file-tests.ts
Normal file
4
types/get-caller-file/get-caller-file-tests.ts
Normal file
@ -0,0 +1,4 @@
|
||||
import getCallerFile = require('get-caller-file');
|
||||
|
||||
let caller: string = getCallerFile();
|
||||
caller = getCallerFile(3);
|
||||
9
types/get-caller-file/index.d.ts
vendored
Normal file
9
types/get-caller-file/index.d.ts
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
// Type definitions for get-caller-file 1.0
|
||||
// Project: https://github.com/stefanpenner/get-caller-file#readme
|
||||
// Definitions by: My Self <https://github.com/me>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
declare function getCallerFile(position?: number): string;
|
||||
declare namespace getCallerFile {}
|
||||
|
||||
export = getCallerFile;
|
||||
23
types/get-caller-file/tsconfig.json
Normal file
23
types/get-caller-file/tsconfig.json
Normal file
@ -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",
|
||||
"get-caller-file-tests.ts"
|
||||
]
|
||||
}
|
||||
1
types/get-caller-file/tslint.json
Normal file
1
types/get-caller-file/tslint.json
Normal file
@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Loading…
Reference in New Issue
Block a user