UNPKG

357 BTypeScriptView Raw
1export declare function getValueOrUndefined<T>(value: T | null | undefined): T | undefined;
2export declare function throwIfNullOrUndefined<T>(value: T | null | undefined, name: string): T;
3export declare function getArray<T>(value: readonly T[] | null | undefined): readonly T[];
4export declare function notNull<T>(value: T | null | undefined): value is T;