Closed ersimont closed 2 years ago
Typing looks like omit() can accept a possibly-null object, but that makes the list of keys throw a typing error.
omit()
omit({} as Record<string, any>, 'hi'); // no error omit({} as Record<string, any> | null, 'hi'); // error!
Typing looks like
omit()
can accept a possibly-null object, but that makes the list of keys throw a typing error.