MightBeUndefined
export type MightBeUndefined<T> = { [K in keyof T]: T[K] | undefined;};T takes in an object type and makes all its properties possibly undefined.
sahithyan/utils
Skip to contentexport type MightBeUndefined<T> = { [K in keyof T]: T[K] | undefined;};T takes in an object type and makes all its properties possibly undefined.