1 | export { ArrayUtils } from './array-utils';
|
2 | export { Prioritizeable } from './prioritizeable';
|
3 | declare type UnknownObject<T extends object> = Record<string | number | symbol, unknown> & {
|
4 | [K in keyof T]: unknown;
|
5 | };
|
6 | export declare type Deferred<T> = {
|
7 | [P in keyof T]: Promise<T[P]>;
|
8 | };
|
9 | export declare type MaybeArray<T> = T | T[];
|
10 | export declare type MaybeNull<T> = {
|
11 | [P in keyof T]: T[P] | null;
|
12 | };
|
13 | export declare type MaybePromise<T> = T | PromiseLike<T>;
|
14 | export declare type MaybeUndefined<T> = {
|
15 | [P in keyof T]?: T[P] | undefined;
|
16 | };
|
17 | export declare type Mutable<T> = {
|
18 | -readonly [P in keyof T]: T[P];
|
19 | };
|
20 | export declare type RecursivePartial<T> = {
|
21 | [P in keyof T]?: T[P] extends (infer I)[] ? RecursivePartial<I>[] : RecursivePartial<T[P]>;
|
22 | };
|
23 | export declare function isBoolean(value: unknown): value is boolean;
|
24 | export declare function isString(value: unknown): value is string;
|
25 | export declare function isNumber(value: unknown): value is number;
|
26 | export declare function isError(value: unknown): value is Error;
|
27 | export declare function isErrorLike(value: unknown): value is Error;
|
28 | export declare function isFunction<T extends (...args: unknown[]) => unknown>(value: unknown): value is T;
|
29 |
|
30 |
|
31 |
|
32 | export declare function isEmptyObject(obj: unknown): obj is object;
|
33 | export declare function isObject<T extends object>(value: unknown): value is UnknownObject<T>;
|
34 | export declare function isUndefined(value: unknown): value is undefined;
|
35 |
|
36 |
|
37 |
|
38 |
|
39 |
|
40 |
|
41 | export declare function isArray<T>(value: unknown, every?: (value: unknown) => unknown, thisArg?: unknown): value is T[];
|
42 | export declare function isStringArray(value: unknown): value is string[];
|
43 |
|
44 |
|
45 |
|
46 | export declare function nullToUndefined<T>(nullable: MaybeNull<T>): MaybeUndefined<T>;
|
47 |
|
48 |
|
49 |
|
50 | export declare function unreachable(_never: never, message?: string): never;
|
51 |
|
52 |
|
53 |
|
54 | export declare function isDefined<T>(arg: T | null | undefined): arg is T;
|
55 |
|
56 |
|
57 |
|
58 | export declare function isUndefinedOrNull(obj: unknown): obj is undefined | null;
|
59 |
|
\ | No newline at end of file |