Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

622 B
Raw Blame
/** Favorites callbacks shared by REST and GraphQL, without transport internals. */
export type FavoriteMutationCallbacks<Data, Input, Context = void> = {
  onMutate?: (
    input: Input
  ) => Context | undefined | Promise<Context | undefined>;
  onSuccess?: (
    data: Data,
    input: Input,
    context: Context | undefined
  ) => void | Promise<void>;
  onError?: (
    error: Error,
    input: Input,
    context: Context | undefined
  ) => void | Promise<void>;
  onSettled?: (
    data: Data | undefined,
    error: Error | null,
    input: Input,
    context: Context | undefined
  ) => void | Promise<void>;
};