@andrewmurraydavid @bryanjnelson both of you guys hit this with project & language repos.
With no omit array given, TS inferred the OmitKeys type to be all of the enum members.
Giving it a default value of never suppresses that, so it will infer if the array is given or fallback to this default value which removes nothing.
Honestly TS is amazing.
@andrewmurraydavid @bryanjnelson both of you guys hit this with project & language repos. With no omit array given, TS inferred the
OmitKeys
type to be all of the enum members. Giving it a default value ofnever
suppresses that, so it will infer if the array is given or fallback to this default value which removes nothing. Honestly TS is amazing.