Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed May 13, 2023
1 parent 67f22bb commit a3a94c2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main.test-d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import setErrorProps, { type Options } from 'set-error-props'
import { expectType, expectAssignable, expectNotAssignable } from 'tsd'

import setErrorProps, { type Options } from 'set-error-props'

const error = new Error('test')
expectAssignable<Error>(setErrorProps(error, {}))

Expand Down Expand Up @@ -64,10 +65,12 @@ expectType<'0'>(
.name,
)
expectAssignable<() => '0'>(
// eslint-disable-next-line @typescript-eslint/unbound-method
setErrorProps({} as Error & { toString: () => '0' }, { toString: () => '1' })
.toString,
)
expectAssignable<() => '0'>(
// eslint-disable-next-line @typescript-eslint/unbound-method
setErrorProps(
{} as Error & { toString: () => '0' },
{ toString: () => '1' },
Expand Down

0 comments on commit a3a94c2

Please sign in to comment.