mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
typedefinition for Caller (#29406)
* typedefinition for Caller * edit comment change comment Definitions information, delete useless comment * edit comment * remove patch version * restore Definitions line
This commit is contained in:
parent
65da46f368
commit
5fa7e99518
4
types/caller/caller-tests.ts
Normal file
4
types/caller/caller-tests.ts
Normal file
@ -0,0 +1,4 @@
|
||||
import caller = require('caller');
|
||||
|
||||
const callerFile: string = caller();
|
||||
const callerFile2: string = caller(1);
|
||||
8
types/caller/index.d.ts
vendored
Normal file
8
types/caller/index.d.ts
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
// Type definitions for caller 1.0
|
||||
// Project: https://github.com/totherik/caller
|
||||
// Definitions by: Ignocide <https://github.com/ignocide>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
declare function caller(depth?: number): string;
|
||||
|
||||
export = caller;
|
||||
23
types/caller/tsconfig.json
Normal file
23
types/caller/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",
|
||||
"caller-tests.ts"
|
||||
]
|
||||
}
|
||||
1
types/caller/tslint.json
Normal file
1
types/caller/tslint.json
Normal file
@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Loading…
Reference in New Issue
Block a user