@ngxs/store
Version:
10 lines (9 loc) • 678 B
TypeScript
import { StateOperator } from '@ngxs/store';
import { Predicate } from './internals';
export declare function isStateOperator<T>(value: T | StateOperator<T>): value is StateOperator<T>;
export declare function isUndefined(value: any): value is undefined;
export declare function isPredicate<T>(value: Predicate<T> | boolean | number): value is Predicate<T>;
export declare function isNumber(value: any): value is number;
export declare function invalidIndex(index: number): boolean;
export declare function isNil<T>(value: T | null | undefined): value is null | undefined;
export declare type RepairType<T> = T extends true ? boolean : (T extends false ? boolean : T);