mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
9 lines
294 B
TypeScript
9 lines
294 B
TypeScript
import extractStack = require('extract-stack');
|
|
|
|
const error = new Error('Missing unicorn');
|
|
|
|
extractStack(error); // $ExpectType string
|
|
extractStack(error.stack); // $ExpectType string
|
|
extractStack.lines(error); // $ExpectType string[]
|
|
extractStack.lines(error.stack); // $ExpectType string[]
|