type-fest icon indicating copy to clipboard operation
type-fest copied to clipboard

Add SetNonNullable alternative names

Open igas opened this issue 10 months ago • 1 comments

I was migrating from other library and was looking for recursive NonNullable, which was called DeepNonNullable. Only through search in issues I found SetNonNullable.

Related #795

igas avatar Apr 09 '25 09:04 igas

SetNonNullable doesn't work for deeply nested key.

type T = SetNonNullable<{a: {b: string | null}}>;
//   ^? type T = {
//          a: {
//              b: string | null;
//          };
//      }

som-sm avatar Apr 09 '25 09:04 som-sm