()
| 45 | |
| 46 | describe('defineProps w/ generics', () => { |
| 47 | function test<T extends boolean>() { |
| 48 | const props = defineProps<{ foo: T; bar: string; x?: boolean }>() |
| 49 | expectType<T>(props.foo) |
| 50 | expectType<string>(props.bar) |
| 51 | expectType<boolean>(props.x) |
| 52 | } |
| 53 | test() |
| 54 | }) |
| 55 |
no test coverage detected