Type alias GraphQLSyncFragmentSyncAtomFamilyOptions<T, K, P>

GraphQLSyncFragmentSyncAtomFamilyOptions<T, K, P>: {
    default: K;
    fragments: GraphQLTaggedNode[];
    keys?: string[];
    read?: ((data: KeyTypeData<T>, previous: KeyTypeData<T> | null, params: P) => K | ((current: K) => K));
    sync?: ((params: P) => boolean);
}

Type Parameters

  • T extends KeyType

  • K

  • P extends SerializableParam

Type declaration

  • default: K
  • fragments: GraphQLTaggedNode[]
  • Optional keys?: string[]
  • Optional read?: ((data: KeyTypeData<T>, previous: KeyTypeData<T> | null, params: P) => K | ((current: K) => K))
      • (data: KeyTypeData<T>, previous: KeyTypeData<T> | null, params: P): K | ((current: K) => K)
      • Parameters

        • data: KeyTypeData<T>
        • previous: KeyTypeData<T> | null
        • params: P

        Returns K | ((current: K) => K)

  • Optional sync?: ((params: P) => boolean)
      • (params: P): boolean
      • Parameters

        • params: P

        Returns boolean

Generated using TypeDoc