/** * narrows the type to remove undefined * * ref * - https://stackoverflow.com/a/63045455/3068233 */ export type IsDefined = T extends undefined ? never : T; /** * narrows the type to remove undefined * * note * - alias of IsDefined */ export type NotUndefined = IsDefined; /** * checks whether the value is not undefined */ export declare const isDefined: (val: T) => val is IsDefined; /** * checks whether the value is not undefined * * note * - alias of isDefined */ export declare const isNotUndefined: (val: T) => val is IsDefined;