Open History to see the last commit
1import { expectTypeOf, test } from 'vitest'
2import type { ErrorComponentProps } from '../src'
3β
4test('ErrorComponentProps defaults error to unknown', () => {
5 expectTypeOf<ErrorComponentProps['error']>().toEqualTypeOf<unknown>()
6 expectTypeOf<ErrorComponentProps<Error>['error']>().toEqualTypeOf<Error>()
7})