@infordata-web/portal-common-component-lib
Version:
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 10.0.14.
42 lines (41 loc) • 2.38 kB
TypeScript
declare const isDefined: (x: any) => boolean;
declare const isUndefined: (x: any) => boolean;
declare const isNotUndefined: (x: any) => boolean;
declare const isNull: (x: any) => boolean;
declare const isNullOrUndefined: (x: any) => boolean;
declare const isNotNull: (x: any) => boolean;
declare const isNotNullOrUndefined: (x: any) => boolean;
declare const self: (x: any) => any;
declare const curry: <T>(v: T) => () => T;
declare const bind: <T extends Function>(f: T) => (thisArg: any) => any;
declare const partial1: <T extends Function>(f: T) => (a1: any) => (args: any) => any;
declare const lazyApply1: <T extends Function>(f: T) => (a1: any) => any;
declare const is: <T>(a: T) => (b: any) => boolean;
declare const isGreaterThan: (a: number) => (b: number) => boolean;
declare const isLessThan: (a: number) => (b: number) => boolean;
declare const isGreaterOrEqualTo: (a: number) => (b: number) => boolean;
declare const isLessOrEqualTo: (a: number) => (b: number) => boolean;
declare const not: (a: boolean) => boolean;
declare type Consumer<T> = (x: T) => void;
declare type Predicate<T> = (x: T) => boolean;
declare type CoalesceMonadFound<T> = (prop: keyof T) => CoalesceMonadFound<T> & {
valueOf: () => T;
};
declare type CoalesceMonadNotFound<T, K> = (orValue: K) => CoalesceMonadNotFound<T, K>;
declare type CoalesceMonad<T, K> = CoalesceMonadNotFound<T, T | K> & CoalesceMonadFound<T>;
declare const coalesce: <T, K>(obj: T, orValue: K) => CoalesceMonad<T, K>;
declare type GivenMonad<T, K> = {
when: (condition: Predicate<T>, newValue: K) => GivenMonad<T, K>;
otherwise: (elseValue: K) => Pick<GivenMonad<T, K>, 'valueOf'>;
valueOf: () => K;
};
declare const given: <T, K>(x: T) => GivenMonad<T, K>;
declare const ftor: (x: any) => {
map: (f: any) => any;
valueOf: () => any;
};
declare const protoOf: (x: any) => Object;
declare const constructorOf: (x: any) => Function;
declare const annotationsOf: (x: any) => any;
declare const constructorNameOf: (x: any) => string;
export { curry, bind, partial1, lazyApply1, is, coalesce, not, given, protoOf, constructorOf, annotationsOf, self, Predicate, Consumer, isGreaterThan, isLessThan, isGreaterOrEqualTo, isLessOrEqualTo, isNull, isDefined, isUndefined, isNullOrUndefined, isNotNull, isNotNullOrUndefined, ftor, isNotUndefined, constructorNameOf };