@civet/core 2.1.0 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/DataProvider.d.ts +1 -1
- package/dist/Meta.d.ts +1 -1
- package/package.json +1 -1
package/dist/DataProvider.d.ts
CHANGED
|
@@ -83,7 +83,7 @@ export default abstract class DataProvider<Item, Query, Options, MetaType extend
|
|
|
83
83
|
compareRequests(nextRequestDetails: RequestDetails<Query, Options>, prevRequestDetails: RequestDetails<Query, Options>): boolean;
|
|
84
84
|
shouldPersist(nextRequestDetails: RequestDetails<Query, Options>, prevRequestDetails: RequestDetails<Query, Options>, persistent: Persistence, _context: ResourceBaseContext<Item, Query, Options, MetaType>): boolean;
|
|
85
85
|
compareItemVersions(_item1: Item, _item2: Item): boolean;
|
|
86
|
-
getItemIdentifier(item: Item): string;
|
|
86
|
+
getItemIdentifier(item: Item): string | undefined;
|
|
87
87
|
transition(nextContext: ResourceBaseContext<Item, Query, Options, MetaType>, _prevContext: ResourceBaseContext<Item, Query, Options, MetaType>): Item[];
|
|
88
88
|
recycleItems(nextContext: ResourceBaseContext<Item, Query, Options, MetaType>, prevContext: ResourceBaseContext<Item, Query, Options, MetaType>): Item[];
|
|
89
89
|
}
|
package/dist/Meta.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export default class Meta<Schema extends GenericObject = GenericObject, Instance
|
|
|
14
14
|
keys: () => (keyof Schema)[];
|
|
15
15
|
set: <Key extends keyof Schema>(key: Key, value: Schema[Key]) => void;
|
|
16
16
|
values: () => Schema[keyof Schema][];
|
|
17
|
-
commit: (prev
|
|
17
|
+
commit: (prev?: Schema, ignore?: (keyof Schema)[]) => Schema;
|
|
18
18
|
}
|
|
19
19
|
export type InferSchema<MetaI extends Meta> = MetaI['_inferSchema'];
|
|
20
20
|
export type InferInstance<MetaI extends Meta> = MetaI['_inferInstance'];
|