Files
memecoin-botV2/.pnpm-store/v10/files/4c/a21bfecc63da5107e99d7ec4fc24cfa8417233fda4988cd26d6c4ea4cc0e0f87adade2fd6ce769d5d3a8ec6918e792d7d93f5614f48c12e8105f83c7c4fd5b

13 lines
454 B
Plaintext

/**
* A set of common reasons for calling nullThrows
*/
export declare const NullThrowsReasons: {
readonly MissingParent: 'Expected node to have a parent.';
readonly MissingToken: (token: string, thing: string) => string;
};
/**
* Assert that a value must not be null or undefined.
* This is a nice explicit alternative to the non-null assertion operator.
*/
export declare function nullThrows<T>(value: T, message: string): NonNullable<T>;