Skip to content

Commit ea9f6f0

Browse files
committed
Improve types
1 parent 3257aed commit ea9f6f0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

types/main.test-d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ import {
77
expectError,
88
} from 'tsd'
99

10-
const BaseError = ModernError.subclass('TestError', {
10+
const BaseError = ModernError.subclass('BaseError', {
1111
plugins: [modernErrorsCli],
1212
})
13-
const error = new BaseError('', { cause: '' })
13+
const error = new BaseError('')
1414
expectType<void>(error.exit())
1515

1616
ModernError.subclass('TestError', { plugins: [modernErrorsCli], cli: {} })

0 commit comments

Comments
 (0)