Transforms a type into a nullable type.
type A = Nullable<string>; // string | null
npx atmx add type nullable
Copy and paste the following method into @/utils/helpers/undefined.ts:
@/utils/helpers/undefined.ts
/*** Transforms a type into a nullable type.** @example* type A = Nullable<string> // string | null*/export type Nullable<T> = T | null;