Files
30-seconds-of-code/node_modules/graphql-compose/esm/utils/definitions.js.flow
2019-08-20 15:52:05 +02:00

16 lines
395 B
Plaintext

/* @flow strict */
export type ObjMap<T> = { [key: string]: T, __proto__: null };
export type Thunk<+T> = (() => T) | T;
export type MaybePromise<+T> = Promise<T> | T;
export type DirectiveArgs = { [key: string]: any };
export type ExtensionsDirective = {
name: string,
args: DirectiveArgs,
};
export type Extensions = {
[key: string]: any,
directives?: Array<ExtensionsDirective>,
};