mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
9 lines
229 B
TypeScript
9 lines
229 B
TypeScript
import cleanStack = require('clean-stack');
|
|
|
|
const error = new Error('Missing unicorn');
|
|
|
|
if (error.stack) {
|
|
cleanStack(error.stack); // $ExpectType string
|
|
cleanStack(error.stack, {pretty: true}); // $ExpectType string
|
|
}
|