mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 14:20:12 +00:00
Move all packages to a types directory
This commit is contained in:
3
types/error-stack-parser/error-stack-parser-tests.ts
Normal file
3
types/error-stack-parser/error-stack-parser-tests.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
ErrorStackParser.parse(new Error('Boom'));
|
||||
26
types/error-stack-parser/index.d.ts
vendored
Normal file
26
types/error-stack-parser/index.d.ts
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
// Type definitions for ErrorStackParser v1.3.3
|
||||
// Project: https://github.com/stacktracejs/error-stack-parser
|
||||
// Definitions by: Eric Wendelin <https://www.eriwen.com>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
declare module ErrorStackParser {
|
||||
export interface StackFrame {
|
||||
constructor(functionName: string, args: any, fileName: string, lineNumber: number, columnNumber: number, source: string): StackFrame;
|
||||
|
||||
functionName?: string;
|
||||
args?: any[];
|
||||
fileName?: string;
|
||||
lineNumber?: number;
|
||||
columnNumber?: number;
|
||||
source?: string;
|
||||
toString(): string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Given an Error object, extract the most information from it.
|
||||
*
|
||||
* @param {Error} error object
|
||||
* @return {Array} of StackFrames
|
||||
*/
|
||||
export function parse(error: Error): StackFrame[];
|
||||
}
|
||||
22
types/error-stack-parser/tsconfig.json
Normal file
22
types/error-stack-parser/tsconfig.json
Normal file
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": false,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"error-stack-parser-tests.ts"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user