confinode
Version:
Node application configuration reader
16 lines (15 loc) • 557 B
TypeScript
/**
* Assert that the value does not exist. This method may be used in switch or if/else to ensure no value of
* a finite set has been forgotten.
*
* @param value - The non-existing value to test.
* @param label - The label for the value.
*/
export declare function assertNever(value: never, label?: string): never;
/**
* Check that the given value is not undefined. Used as type guard.
*
* @param value - The value to test.
* @returns `true` if value is not undefined.
*/
export declare function isExisting<T>(value: T | undefined): value is T;