Files
30-seconds-of-code/node_modules/graphql-compose/esm/utils/misc.d.ts
2019-08-20 15:52:05 +02:00

26 lines
648 B
TypeScript

import { Thunk } from './definitions';
export function resolveMaybeThunk<T>(thingOrThunk: Thunk<T>): T;
export function camelCase(str: string): string;
export function getPluralName(name: string): string;
export function upperFirst(str: string): string;
export function clearName(str: string): string;
export function omit(obj: object, keys: string[]): object;
export function only(obj: object, keys: string[]): object;
/**
* Used to print values in error messages.
*/
export function inspect(value: any): string;
export function forEachKey<V>(
arrayOrObject: { [key: string]: V },
callback: (value: V, key: string) => void
): void;