astro-ghostcms/.pnpm-store/v3/files/49/2289e0e39710ca6047d345f81a4...

14 lines
522 B
Plaintext
Raw Normal View History

2024-02-14 19:45:06 +00:00
/**
* 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, message: string): NonNullable<T>;
export { nullThrows, NullThrowsReasons };
//# sourceMappingURL=nullThrows.d.ts.map