EnsureExtends type

Utility type to ensure that T extends U.

export type EnsureExtends<T, U> = T extends U ? T : never;