#Optional type parameters for interfaces?
1 messages · Page 1 of 1 (latest)
assign a default type
additionally, I want T to extend MyInterface
so I tried export interface MyInterface<T extends MyInterface = void>
but I get error "Type 'void' does not satisfy the constraint 'MyInterface<void>"
default to never
or MyInterface
never strikes again! thank you so much