1 | import type { Thunk, ObjMap } from './definitions';
|
2 | export declare function resolveMaybeThunk<T>(thingOrThunk: Thunk<T>): T;
|
3 | export declare function camelCase(str: string): string;
|
4 | export declare function getPluralName(name: string): string;
|
5 | export declare function upperFirst(str: string): string;
|
6 | export declare function clearName(str: string): string;
|
7 | export declare function omit(obj: Record<any, any>, keys: string | string[]): Record<any, any>;
|
8 | export declare function only(obj: Record<any, any>, keys: string | string[]): Record<any, any>;
|
9 | export declare function inspect(value: unknown): string;
|
10 | export declare function forEachKey<V>(obj: {
|
11 | [key: string]: V;
|
12 | } | ObjMap<V>, callback: (value: V, key: string) => void): void;
|
13 | export declare function mapEachKey<NewV = any, T extends Object | undefined = {}>(obj: T, callback: (value: NonNullable<T>[keyof NonNullable<T>], key: keyof NonNullable<T>) => NewV): T extends undefined ? undefined : ObjMap<NewV>;
|
14 | export declare function keyValMap<T, V>(list: ReadonlyArray<T>, keyFn: (item: T) => string, valFn: (item: T) => V): ObjMap<V>;
|
15 | export declare function keyMap<T>(list: ReadonlyArray<T>, keyFn: (item: T) => string): ObjMap<T>;
|
16 | export declare function invariant(condition: unknown, message?: string): asserts condition;
|
17 | //# sourceMappingURL=misc.d.ts.map |
\ | No newline at end of file |