nullthrows.d.ts 153 Bytes
Newer Older
1 2 3 4 5
/**
 * Throws if value is null or undefined, otherwise returns value.
 */

export default function nullthrows<T>(value?: T | null, message?: string): T;