Urara-Blog/node_modules/.pnpm-store/v3/files/55/3266b694ebd1940060529ea5516856e069559e9b3b3090e2ce1120d203b1d2d85e127c35dbe0b807cc8d6d26b299e5302f8660b92bbe2f25d53d10ae6a3ae2
2022-08-14 01:14:53 +08:00

14 lines
No EOL
528 B
Text

/**
* A set of common reasons for calling nullThrows
*/
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.
*/
declare function nullThrows<T>(value: T | null | undefined, message: string): T;
export { nullThrows, NullThrowsReasons };
//# sourceMappingURL=nullThrows.d.ts.map