UNPKG

@loona/core

Version:

App State Management done with GraphQL (core package)

13 lines (12 loc) 404 B
import { Context } from './common'; export interface MutationInfo<R = any> { name: string; variables?: Record<string, any>; result?: R; } export declare type UpdateResolveFn = (info: MutationInfo, context: Context) => void; export interface UpdateDef { mutation: string; resolve: UpdateResolveFn; } export declare type UpdateMethod = (action: MutationInfo, context: Context) => void;