Skip to content

Commit 94507ee

Browse files
committed
update docs
1 parent fdedcbc commit 94507ee

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

docs/atom-livestore/AtomLivestore.ts.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,16 @@ export interface AtomLiveStore<Self, Id extends string, S extends LiveStoreSchem
6262
* Creates a Atom that allows you to resolve a LiveQueryDef. It embeds the loading
6363
* of the Store and will emit a `Result` that contains the result of the query
6464
*/
65-
readonly makeQuery: <A>(query: LiveQueryDef<A>) => Atom.Atom<Result.Result<A>>
65+
readonly makeQuery: <A>(
66+
query: LiveQueryDef<A> | ((get: Atom.Context) => LiveQueryDef<A>)
67+
) => Atom.Atom<Result.Result<A>>
6668
/**
6769
* Creates a Atom that allows you to resolve a LiveQueryDef. If the Store has
6870
* not been created yet, it will return `undefined`.
6971
*/
70-
readonly makeQueryUnsafe: <A>(query: LiveQueryDef<A>) => Atom.Atom<A | undefined>
72+
readonly makeQueryUnsafe: <A>(
73+
query: LiveQueryDef<A> | ((get: Atom.Context) => LiveQueryDef<A>)
74+
) => Atom.Atom<A | undefined>
7175
/**
7276
* A Atom.Writable that allows you to commit an event to the Store.
7377
*/

0 commit comments

Comments
 (0)