File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 11691169 * in one call. This will also start to run the first task in the queue (which
11701170 * once complete will then run the next, and so on), and so this method itself
11711171 * is also asynchronous and returns a promise of the Persister.
1172+ * @param actions One or many functions which will be scheduled, and which can
1173+ * be asynchronous.
11721174 * @returns A reference to the Persister object.
11731175 * @example
11741176 * This example creates a custom Persister object against a newly-created
Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ export interface Persister<Persist extends Persists = Persists.StoreOnly> {
156156 isAutoSaving ( ) : boolean ;
157157
158158 /// Persister.schedule
159- schedule ( ...actions : Promise < any > [ ] ) : Promise < this> ;
159+ schedule ( ...actions : ( ( ) => Promise < any > ) [ ] ) : Promise < this> ;
160160
161161 /// Persister.getStore
162162 getStore ( ) : PersistedStore < Persist > ;
Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ export interface Persister<
175175 isAutoSaving ( ) : boolean ;
176176
177177 /// Persister.schedule
178- schedule ( ...actions : Promise < any > [ ] ) : Promise < this> ;
178+ schedule ( ...actions : ( ( ) => Promise < any > ) [ ] ) : Promise < this> ;
179179
180180 /// Persister.getStore
181181 getStore ( ) : PersistedStore < Schemas , Persist > ;
You can’t perform that action at this time.
0 commit comments