Type alias GraphQLSyncFragmentSyncAtomOptions<T, K>
GraphQLSyncFragmentSyncAtomOptions<T, K>: {
default?: K;
fragments: GraphQLTaggedNode[];
keys?: string[];
read?: ((data: KeyTypeData<T>, previous: KeyTypeData<T> | null) => K);
selectorEffect?: "write" | boolean | ((...params: Parameters<ReadWriteSelectorOptions<K>["set"]>) => K);
}
Type declaration
-
Optional
default?: K
-
fragments: GraphQLTaggedNode[]
-
Optional
keys?: string[]
-
Optional
read?: ((data: KeyTypeData<T>, previous: KeyTypeData<T> | null) => K)
-
- (data: KeyTypeData<T>, previous: KeyTypeData<T> | null): K
-
Parameters
-
data: KeyTypeData<T>
-
previous: KeyTypeData<T> | null
Returns K
-
Optional
selectorEffect?: "write" | boolean | ((...params: Parameters<ReadWriteSelectorOptions<K>["set"]>) => K)