Files
NapCatQQ/.pnpm-store/v3/files/5b/2653e389e2097972febef784a85ec9db29175d4902ba5a77e25cafdc29e38023eda504712b0eaf5e986f6d29f00804797b8a6ff42a22d5ecc8b48bc5a58d6b
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08: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>;