UNPKG

ngx-matomo

Version:

Matomo (aka. Piwik) web analytics for Angular applications.

19 lines (18 loc) 547 B
/** * Type guard for checking if a value or object is non null. * * @export */ export declare function isNonNull<T>(value: T | undefined | null): value is NonNullable<T>; /** * Type guard for checking if a value or object is defined. * * @export */ export declare function isDefined<T>(value: T | undefined | null): value is NonNullable<T>; /** * Checks if a value or object is non null or undefined, throws an error otherwise. * * @export */ export declare function requireNonNull<T>(value: T | null | undefined, message: string): T;