UNPKG

@typescript-eslint/utils

Version:

Utilities for working with TypeScript + ESLint together

13 lines 494 B
/** * 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>; //# sourceMappingURL=nullThrows.d.ts.map