mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
8 lines
229 B
TypeScript
8 lines
229 B
TypeScript
export type ArrayElement<ArrType> = ArrType extends ReadonlyArray<infer ElementType>
|
|
? ElementType
|
|
: never;
|
|
|
|
export type ExcludeNull<T> = T extends null ? never : T;
|
|
|
|
export type KeysOfObjectOrNull<T> = keyof ExcludeNull<T>;
|