Files
agency/.pnpm-store/v3/files/5b/2653e389e2097972febef784a85ec9db29175d4902ba5a77e25cafdc29e38023eda504712b0eaf5e986f6d29f00804797b8a6ff42a22d5ecc8b48bc5a58d6b
hanzo-agent 5af6960b87 run project
Run: sess_f37640604ae254cb4d11dc6217f7b721
2026-09-30 00:04:56 +00:00

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>;