UNPKG

isaacscript-common

Version:

Helper functions and features for IsaacScript mods.

12 lines (11 loc) 235 B
export type WidenLiteral<T> = T extends string ? string : T extends number ? number : T extends boolean ? boolean : T extends bigint ? bigint : T extends symbol ? symbol : T;