T
Without
T without the keys K. Unlike Omit, it keeps the known keys of a type that also has an index signature.
type Without<T, K extends PropertyKey> = { [Key in keyof T as Key extends K ? never : Key]: T[Key] }T without the keys K. Unlike Omit, it keeps the known keys of a type that also has an index signature.
type Without<T, K extends PropertyKey> = { [Key in keyof T as Key extends K ? never : Key]: T[Key] }