@magnetarjs/types
Advanced tools
Comparing version 0.9.0 to 0.9.1
@@ -504,2 +504,4 @@ import { PartialDeep, Spread } from 'type-fest'; | ||
* Plugin's response to a 'fetch' action, when acting as a "remote" Store Plugin. | ||
* | ||
* Optimistic fetch responses don't need to return `reachedEnd` nor `cursor` | ||
*/ | ||
@@ -509,5 +511,5 @@ declare type FetchResponse = { | ||
/** Wether or not the end was reached, in case there is no `limit` this is always true */ | ||
reachedEnd: boolean; | ||
reachedEnd?: boolean; | ||
/** The last fetched doc */ | ||
last: unknown; | ||
cursor?: unknown; | ||
}; | ||
@@ -875,3 +877,3 @@ /** | ||
/** | ||
* Stored by plugins to be able to more easily fetch more data with `startAfter(last)` | ||
* Stored by plugins to be able to more easily fetch more data with `startAfter(cursor)` | ||
*/ | ||
@@ -881,4 +883,4 @@ declare type FetchMetaData = { | ||
reachedEnd: boolean; | ||
/** The last fetched doc */ | ||
last: unknown; | ||
/** The last fetched doc, in a format defined by the Plugin */ | ||
cursor: unknown; | ||
}; | ||
@@ -885,0 +887,0 @@ |
{ | ||
"name": "@magnetarjs/types", | ||
"version": "0.9.0", | ||
"version": "0.9.1", | ||
"sideEffects": false, | ||
@@ -5,0 +5,0 @@ "description": "Magnetar shared types", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
44259
940