@ember-data-types/store 5.6.0-alpha.5 → 5.6.0-beta.1

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.
Files changed (87) hide show
  1. package/package.json +1 -1
  2. package/unstable-preview-types/-private.d.ts +3 -29
  3. package/unstable-preview-types/configure.d.ts +14 -14
  4. package/unstable-preview-types/index.d.ts +4 -225
  5. package/unstable-preview-types/types.d.ts +3 -6
  6. package/unstable-preview-types/-private/cache-handler/handler.d.ts +0 -59
  7. package/unstable-preview-types/-private/cache-handler/handler.d.ts.map +0 -1
  8. package/unstable-preview-types/-private/cache-handler/types.d.ts +0 -101
  9. package/unstable-preview-types/-private/cache-handler/types.d.ts.map +0 -1
  10. package/unstable-preview-types/-private/cache-handler/utils.d.ts +0 -34
  11. package/unstable-preview-types/-private/cache-handler/utils.d.ts.map +0 -1
  12. package/unstable-preview-types/-private/caches/cache-utils.d.ts +0 -11
  13. package/unstable-preview-types/-private/caches/cache-utils.d.ts.map +0 -1
  14. package/unstable-preview-types/-private/caches/identifier-cache.d.ts +0 -171
  15. package/unstable-preview-types/-private/caches/identifier-cache.d.ts.map +0 -1
  16. package/unstable-preview-types/-private/caches/instance-cache.d.ts +0 -63
  17. package/unstable-preview-types/-private/caches/instance-cache.d.ts.map +0 -1
  18. package/unstable-preview-types/-private/caches/resource-utils.d.ts +0 -12
  19. package/unstable-preview-types/-private/caches/resource-utils.d.ts.map +0 -1
  20. package/unstable-preview-types/-private/debug/utils.d.ts +0 -9
  21. package/unstable-preview-types/-private/debug/utils.d.ts.map +0 -1
  22. package/unstable-preview-types/-private/document.d.ts +0 -149
  23. package/unstable-preview-types/-private/document.d.ts.map +0 -1
  24. package/unstable-preview-types/-private/legacy-model-support/record-reference.d.ts +0 -166
  25. package/unstable-preview-types/-private/legacy-model-support/record-reference.d.ts.map +0 -1
  26. package/unstable-preview-types/-private/legacy-model-support/shim-model-class.d.ts +0 -19
  27. package/unstable-preview-types/-private/legacy-model-support/shim-model-class.d.ts.map +0 -1
  28. package/unstable-preview-types/-private/managers/cache-capabilities-manager.d.ts +0 -28
  29. package/unstable-preview-types/-private/managers/cache-capabilities-manager.d.ts.map +0 -1
  30. package/unstable-preview-types/-private/managers/cache-manager.d.ts +0 -430
  31. package/unstable-preview-types/-private/managers/cache-manager.d.ts.map +0 -1
  32. package/unstable-preview-types/-private/managers/notification-manager.d.ts +0 -95
  33. package/unstable-preview-types/-private/managers/notification-manager.d.ts.map +0 -1
  34. package/unstable-preview-types/-private/managers/record-array-manager.d.ts +0 -100
  35. package/unstable-preview-types/-private/managers/record-array-manager.d.ts.map +0 -1
  36. package/unstable-preview-types/-private/network/request-cache.d.ts +0 -106
  37. package/unstable-preview-types/-private/network/request-cache.d.ts.map +0 -1
  38. package/unstable-preview-types/-private/new-core-tmp/promise-state.d.ts +0 -257
  39. package/unstable-preview-types/-private/new-core-tmp/promise-state.d.ts.map +0 -1
  40. package/unstable-preview-types/-private/new-core-tmp/reactivity/configure.d.ts +0 -91
  41. package/unstable-preview-types/-private/new-core-tmp/reactivity/configure.d.ts.map +0 -1
  42. package/unstable-preview-types/-private/new-core-tmp/reactivity/internal.d.ts +0 -172
  43. package/unstable-preview-types/-private/new-core-tmp/reactivity/internal.d.ts.map +0 -1
  44. package/unstable-preview-types/-private/new-core-tmp/reactivity/signal.d.ts +0 -32
  45. package/unstable-preview-types/-private/new-core-tmp/reactivity/signal.d.ts.map +0 -1
  46. package/unstable-preview-types/-private/new-core-tmp/request-state.d.ts +0 -256
  47. package/unstable-preview-types/-private/new-core-tmp/request-state.d.ts.map +0 -1
  48. package/unstable-preview-types/-private/record-arrays/identifier-array.d.ts +0 -143
  49. package/unstable-preview-types/-private/record-arrays/identifier-array.d.ts.map +0 -1
  50. package/unstable-preview-types/-private/record-arrays/many-array.d.ts +0 -202
  51. package/unstable-preview-types/-private/record-arrays/many-array.d.ts.map +0 -1
  52. package/unstable-preview-types/-private/record-arrays/native-proxy-type-fix.d.ts +0 -118
  53. package/unstable-preview-types/-private/record-arrays/native-proxy-type-fix.d.ts.map +0 -1
  54. package/unstable-preview-types/-private/store-service.d.ts +0 -1597
  55. package/unstable-preview-types/-private/store-service.d.ts.map +0 -1
  56. package/unstable-preview-types/-private/store-service.type-test.d.ts +0 -4
  57. package/unstable-preview-types/-private/store-service.type-test.d.ts.map +0 -1
  58. package/unstable-preview-types/-private/utils/coerce-id.d.ts +0 -7
  59. package/unstable-preview-types/-private/utils/coerce-id.d.ts.map +0 -1
  60. package/unstable-preview-types/-private/utils/construct-resource.d.ts +0 -9
  61. package/unstable-preview-types/-private/utils/construct-resource.d.ts.map +0 -1
  62. package/unstable-preview-types/-private/utils/is-non-empty-string.d.ts +0 -4
  63. package/unstable-preview-types/-private/utils/is-non-empty-string.d.ts.map +0 -1
  64. package/unstable-preview-types/-private/utils/normalize-model-name.d.ts +0 -4
  65. package/unstable-preview-types/-private/utils/normalize-model-name.d.ts.map +0 -1
  66. package/unstable-preview-types/-private/utils/uuid-polyfill.d.ts +0 -4
  67. package/unstable-preview-types/-private/utils/uuid-polyfill.d.ts.map +0 -1
  68. package/unstable-preview-types/-private.d.ts.map +0 -1
  69. package/unstable-preview-types/-types/q/cache-capabilities-manager.d.ts +0 -102
  70. package/unstable-preview-types/-types/q/cache-capabilities-manager.d.ts.map +0 -1
  71. package/unstable-preview-types/-types/q/ds-model.d.ts +0 -24
  72. package/unstable-preview-types/-types/q/ds-model.d.ts.map +0 -1
  73. package/unstable-preview-types/-types/q/identifier.d.ts +0 -175
  74. package/unstable-preview-types/-types/q/identifier.d.ts.map +0 -1
  75. package/unstable-preview-types/-types/q/promise-proxies.d.ts +0 -4
  76. package/unstable-preview-types/-types/q/promise-proxies.d.ts.map +0 -1
  77. package/unstable-preview-types/-types/q/record-data-json-api.d.ts +0 -33
  78. package/unstable-preview-types/-types/q/record-data-json-api.d.ts.map +0 -1
  79. package/unstable-preview-types/-types/q/record-instance.d.ts +0 -24
  80. package/unstable-preview-types/-types/q/record-instance.d.ts.map +0 -1
  81. package/unstable-preview-types/-types/q/schema-service.d.ts +0 -334
  82. package/unstable-preview-types/-types/q/schema-service.d.ts.map +0 -1
  83. package/unstable-preview-types/-types/q/store.d.ts +0 -37
  84. package/unstable-preview-types/-types/q/store.d.ts.map +0 -1
  85. package/unstable-preview-types/configure.d.ts.map +0 -1
  86. package/unstable-preview-types/index.d.ts.map +0 -1
  87. package/unstable-preview-types/types.d.ts.map +0 -1
@@ -1,334 +0,0 @@
1
- declare module '@ember-data/store/-types/q/schema-service' {
2
- import type { StableRecordIdentifier } from '@warp-drive/core-types';
3
- import type { RecordIdentifier } from '@warp-drive/core-types/identifier';
4
- import type { ObjectValue } from '@warp-drive/core-types/json/raw';
5
- import type { Derivation, HashFn, Transformation } from '@warp-drive/core-types/schema/concepts';
6
- import type { ArrayField, DerivedField, FieldSchema, GenericField, HashField, LegacyAttributeField, LegacyRelationshipField, ObjectField, Schema } from '@warp-drive/core-types/schema/fields';
7
- export type AttributesSchema = Record<string, LegacyAttributeField>;
8
- export type RelationshipsSchema = Record<string, LegacyRelationshipField>;
9
- interface ObjectWithStringTypeProperty {
10
- type: string;
11
- }
12
- /**
13
- * The SchemaService provides the ability to query for information about the structure
14
- * of any resource type.
15
- *
16
- * Applications can provide any implementation of the SchemaService they please so long
17
- * as it conforms to this interface.
18
- *
19
- * The design of the service means that schema information could be lazily populated,
20
- * derived-on-demand, or progressively enhanced during the course of an application's runtime.
21
- * The primary requirement is merely that any information the service needs to correctly
22
- * respond to an inquest is available by the time it is asked.
23
- *
24
- * The `@ember-data/model` package provides an implementation of this service which
25
- * makes use of your model classes as the source of information to respond to queries
26
- * about resource schema. While this is useful, this may not be ideal for your application.
27
- * For instance, Schema information could be sideloaded or pre-flighted for API calls,
28
- * resulting in no need to bundle and ship potentially large and expensive JSON
29
- * or large Javascript based Models to pull information from.
30
- *
31
- * To register a custom schema implementation, implement the store's `createSchemaService`
32
- * hook to return an instance of your service.
33
- *
34
- * ```ts
35
- * import Store from '@ember-data/store';
36
- * import CustomSchemas from './custom-schemas';
37
- *
38
- * export default class extends Store {
39
- * createSchemaService() {
40
- * return new CustomSchemas();
41
- * }
42
- * }
43
- * ```
44
- *
45
- * At runtime, both the `Store` and the `CacheCapabilitiesManager` provide
46
- * access to this service via the `schema` property.
47
- *
48
- * ```ts
49
- * export default class extends Component {
50
- * @service store;
51
- *
52
- * get fields() {
53
- * return this.store
54
- * .schema
55
- * .fields(this.args.dataType);
56
- * }
57
- * }
58
- * ```
59
- *
60
- * @class (Interface) SchemaService
61
- * @public
62
- */
63
- export interface SchemaService {
64
- /**
65
- * DEPRECATED - use `hasResource` instead
66
- *
67
- * Queries whether the SchemaService recognizes `type` as a resource type
68
- *
69
- * @public
70
- * @deprecated
71
- * @param {String} type
72
- * @return {Boolean}
73
- */
74
- doesTypeExist?(type: string): boolean;
75
- /**
76
- * Queries whether the SchemaService recognizes `type` as a resource type
77
- *
78
- * @public
79
- * @param {StableRecordIdentifier|ObjectWithStringTypeProperty} resource
80
- * @return {Boolean}
81
- */
82
- hasResource(resource: ObjectWithStringTypeProperty | StableRecordIdentifier): boolean;
83
- /**
84
- * Queries whether the SchemaService recognizes `type` as a resource trait
85
- *
86
- * @public
87
- * @param {String} type
88
- * @return {Boolean}
89
- */
90
- hasTrait(type: string): boolean;
91
- /**
92
- * Queries whether the given resource has the given trait
93
- *
94
- * @public
95
- * @param {StableRecordIdentifier|ObjectWithStringTypeProperty} resource
96
- * @param {String} trait
97
- * @return {Boolean}
98
- */
99
- resourceHasTrait(resource: ObjectWithStringTypeProperty | StableRecordIdentifier, trait: string): boolean;
100
- /**
101
- * Queries for the fields of a given resource type or resource identity.
102
- *
103
- * Should error if the resource type is not recognized.
104
- *
105
- * @public
106
- * @param {StableRecordIdentifier|ObjectWithStringTypeProperty} resource
107
- * @return {Map<string, FieldSchema>}
108
- */
109
- fields(resource: ObjectWithStringTypeProperty | StableRecordIdentifier): Map<string, FieldSchema>;
110
- /**
111
- * Returns the transformation registered with the name provided
112
- * by `field.type`. Validates that the field is a valid transformable.
113
- *
114
- * @public
115
- * @param {TransformableField|ObjectWithStringTypeProperty} field
116
- * @return {Transformation}
117
- */
118
- transformation(field: GenericField | ObjectField | ArrayField | ObjectWithStringTypeProperty): Transformation;
119
- /**
120
- * Returns the hash function registered with the name provided
121
- * by `field.type`. Validates that the field is a valid HashField.
122
- *
123
- * @public
124
- * @param {HashField|ObjectWithStringTypeProperty} field
125
- * @return {HashFn}
126
- */
127
- hashFn(field: HashField | ObjectWithStringTypeProperty): HashFn;
128
- /**
129
- * Returns the derivation registered with the name provided
130
- * by `field.type`. Validates that the field is a valid DerivedField.
131
- *
132
- * @public
133
- * @param {DerivedField|ObjectWithStringTypeProperty} field
134
- * @return {Derivation}
135
- */
136
- derivation(field: DerivedField | ObjectWithStringTypeProperty): Derivation;
137
- /**
138
- * Returns the schema for the provided resource type.
139
- *
140
- * @public
141
- * @param {StableRecordIdentifier|ObjectWithStringTypeProperty} resource
142
- * @return {ResourceSchema}
143
- */
144
- resource(resource: ObjectWithStringTypeProperty | StableRecordIdentifier): Schema;
145
- /**
146
- * Enables registration of multiple Schemas at once.
147
- *
148
- * This can be useful for either pre-loading schema information
149
- * or for registering schema information delivered by API calls
150
- * or other sources just-in-time.
151
- *
152
- * @public
153
- * @param {Schema[]} schemas
154
- */
155
- registerResources(schemas: Schema[]): void;
156
- /**
157
- * Enables registration of a single Schema representing either
158
- * a resource in PolarisMode or LegacyMode or an ObjectSchema
159
- * representing an embedded structure in other schemas.
160
- *
161
- * This can be useful for either pre-loading schema information
162
- * or for registering schema information delivered by API calls
163
- * or other sources just-in-time.
164
- *
165
- * @public
166
- * @param {Schema} schema
167
- */
168
- registerResource(schema: Schema): void;
169
- /**
170
- * Enables registration of a transformation.
171
- *
172
- * The transformation can later be retrieved by the name
173
- * attached to it's `[Type]` property.
174
- *
175
- * @public
176
- * @param {Transformation} transform
177
- */
178
- registerTransformation(transform: Transformation): void;
179
- /**
180
- * Enables registration of a derivation.
181
- *
182
- * The derivation can later be retrieved by the name
183
- * attached to it's `[Type]` property.
184
- *
185
- * @public
186
- * @param {Derivation} derivation
187
- */
188
- registerDerivation<R, T, FM extends ObjectValue | null>(derivation: Derivation<R, T, FM>): void;
189
- /**
190
- * Enables registration of a hashing function
191
- *
192
- * The hashing function can later be retrieved by the name
193
- * attached to it's `[Type]` property.
194
- *
195
- * @public
196
- * @param {HashFn} hashfn
197
- */
198
- registerHashFn(hashFn: HashFn): void;
199
- /**
200
- * DEPRECATED - use `fields` instead
201
- *
202
- * Returns definitions for all properties of the specified resource
203
- * that are considered "attributes". Generally these are properties
204
- * that are not related to book-keeping state on the client and do
205
- * not represent a linkage to another resource.
206
- *
207
- * The return value should be a dictionary of key:value pairs
208
- * where the `key` is the attribute or property's name and `value`
209
- * is an object with at least the property `name` which should also
210
- * match `key`.
211
- *
212
- * Optionally, this object may also specify `type`, which should
213
- * be a string reference to a `transform`, and `options` which
214
- * should be dictionary in which any key:value pairs are permissable.
215
- *
216
- * For instance, when using `@ember-data/model`, the following attribute
217
- * definition:
218
- *
219
- * ```ts
220
- * class extends Model {
221
- * @attr('string', { defaultValue: 'hello' }) greeting;
222
- * @attr('date') birthday;
223
- * @attr firstName;
224
- * }
225
- * ```
226
- *
227
- * Would be returned as:
228
- *
229
- * ```js
230
- * {
231
- * greeting: { name: 'greeting', type: 'string', options: { defaultValue: 'hello' } },
232
- * birthday: { name: 'birthday', type: 'date' },
233
- * firstName: { name: 'firstName' }
234
- * }
235
- * ```
236
- *
237
- * @public
238
- * @deprecated
239
- * @param {RecordIdentifier|ObjectWithStringTypeProperty} identifier
240
- * @return {AttributesSchema}
241
- */
242
- attributesDefinitionFor?(identifier: RecordIdentifier | ObjectWithStringTypeProperty): AttributesSchema;
243
- /**
244
- * DEPRECATED - use `fields` instead
245
- *
246
- * Returns definitions for all properties of the specified resource
247
- * that are considered "relationships". Generally these are properties
248
- * that represent a linkage to another resource.
249
- *
250
- * The return value should be a dictionary of key:value pairs
251
- * where the `key` is the relationship or property's name and `value`
252
- * is an object with at least the following properties:
253
- *
254
- * - `name` which should also match the `key` used in the dictionary.
255
- * - `kind` which should be either `belongsTo` or `hasMany`
256
- * - `type` which should be the related resource's string "type"
257
- * - `options` which should be a dictionary allowing any key but with
258
- * at least the below keys present.
259
- *
260
- * - `options.async` a boolean representing whether data for this relationship is
261
- * typically loaded on-demand.
262
- * - `options.inverse` a string or null representing the field name / key of the
263
- * corresponding relationship on the inverse resource.
264
- *
265
- * Additionally the following options properties are optional. See [Polymorphic Relationships](https://rfcs.emberjs.com/id/0793-polymporphic-relations-without-inheritance)
266
- *
267
- * - `options.polymorphic` a boolean representing whether multiple resource types
268
- * can be used to satisfy this relationship.
269
- * - `options.as` a string representing the abstract type that the concrete side of
270
- * a relationship must specify when fulfilling a polymorphic inverse.
271
- *
272
- * For example, the following Model using @ember-data/model would generate this relationships
273
- * definition by default:
274
- *
275
- * ```js
276
- * class User extends Model {
277
- * @belongsTo('user', { async: false, inverse: null }) bestFriend;
278
- * @hasMany('user', { async: true, inverse: 'friends' }) friends;
279
- * @hasMany('pet', { async: false, polymorphic: true, inverse: 'owner' }) pets;
280
- * }
281
- * ```
282
- *
283
- * Which would be returned as
284
- *
285
- * ```js
286
- * {
287
- * bestFriend: {
288
- * name: 'bestFriend',
289
- * kind: 'belongsTo',
290
- * type: 'user',
291
- * options: {
292
- * async: false,
293
- * inverse: null
294
- * }
295
- * },
296
- * friends: {
297
- * name: 'friends',
298
- * kind: 'hasMany',
299
- * type: 'user',
300
- * options: {
301
- * async: true,
302
- * inverse: 'friends'
303
- * }
304
- * },
305
- * pets: {
306
- * name: 'pets',
307
- * kind: 'hasMany',
308
- * type: 'pet',
309
- * options: {
310
- * async: false,
311
- * polymorphic: true,
312
- * inverse: 'owner'
313
- * }
314
- * },
315
- * }
316
- * ```
317
- *
318
- * @public
319
- * @deprecated
320
- * @param {RecordIdentifier|ObjectWithStringTypeProperty} identifier
321
- * @return {RelationshipsSchema}
322
- */
323
- relationshipsDefinitionFor?(identifier: RecordIdentifier | ObjectWithStringTypeProperty): RelationshipsSchema;
324
- /**
325
- * Returns all known resource types
326
- *
327
- * @public
328
- * @return {String[]}
329
- */
330
- resourceTypes(): Readonly<string[]>;
331
- }
332
- export {};
333
- }
334
- //# sourceMappingURL=schema-service.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"schema-service.d.ts","sourceRoot":"","sources":["../../../src/-types/q/schema-service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AACrE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AACjG,OAAO,KAAK,EACV,UAAU,EACV,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,SAAS,EACT,oBAAoB,EACpB,uBAAuB,EACvB,WAAW,EACX,MAAM,EACP,MAAM,sCAAsC,CAAC;AAE9C,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;AACpE,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,MAAM,EAAE,uBAAuB,CAAC,CAAC;AAE1E,UAAU,4BAA4B;IACpC,IAAI,EAAE,MAAM,CAAC;CACd;AACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AACH,MAAM,WAAW,aAAa;IAC5B;;;;;;;;;OASG;IACH,aAAa,CAAC,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;IAEtC;;;;;;OAMG;IACH,WAAW,CAAC,QAAQ,EAAE,4BAA4B,GAAG,sBAAsB,GAAG,OAAO,CAAC;IAEtF;;;;;;OAMG;IACH,QAAQ,CAAC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AC,UAAU,EAAE,gBAAgB,GAAG,4BAA4B,GAAG,gBAAgB,CAAC;IAExG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+EG;IACH,0BAA0B,CAAC,CAAC,UAAU,EAAE,gBAAgB,GAAG,4BAA4B,GAAG,mBAAmB,CAAC;IAE9G;;;;;OAKG;IACH,aAAa,IAAI,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC;CACrC"}
@@ -1,37 +0,0 @@
1
- declare module '@ember-data/store/-types/q/store' {
2
- import type { Value } from '@warp-drive/core-types/json/raw';
3
- import type { Includes, TypedRecordInstance } from '@warp-drive/core-types/record';
4
- export interface BaseFinderOptions<T = unknown> {
5
- reload?: boolean;
6
- backgroundReload?: boolean;
7
- include?: T extends TypedRecordInstance ? Includes<T>[] : string | string[];
8
- adapterOptions?: Record<string, unknown>;
9
- }
10
- export interface FindRecordOptions<T = unknown> extends BaseFinderOptions<T> {
11
- /**
12
- * Data to preload into the store before the request is made.
13
- * This feature is *highly* discouraged and has no corresponding
14
- * feature when using builders and handlers.
15
- *
16
- * Excepting relationships: the data should be in the form of a
17
- * JSON object where the keys are fields on the record and the value
18
- * is the raw value to be added to the cache.
19
- *
20
- * Relationships can either be provided as string IDs from which
21
- * an identifier will be built base upon the relationship's expected
22
- * resource type, or be record instances from which the identifier
23
- * will be extracted.
24
- *
25
- */
26
- preload?: Record<string, Value>;
27
- }
28
- export type QueryOptions = {
29
- [K in string | 'adapterOptions']?: K extends 'adapterOptions' ? Record<string, unknown> : unknown;
30
- };
31
- export type FindAllOptions<T = unknown> = BaseFinderOptions<T>;
32
- export type LegacyResourceQuery<T = unknown> = {
33
- include?: T extends TypedRecordInstance ? Includes<T>[] : string | string[];
34
- [key: string]: Value | undefined;
35
- };
36
- }
37
- //# sourceMappingURL=store.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"store.d.ts","sourceRoot":"","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ourceRoot":"","sources":["../src/configure.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH;;;;;;GAMG;AACH,OAAO,EAAE,YAAY,EAAE,MAAM,8CAA8C,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmLG;AACH,OAAO,EACL,KAAK,IAAI,OAAO,EAChB,KAAK,mBAAmB,EACxB,YAAY,EACZ,KAAK,QAAQ,EACb,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,mBAAmB,EACnB,QAAQ,GACT,MAAM,YAAY,CAAC;AAEpB,YAAY,EACV,sBAAsB,EACtB,cAAc,EACd,gBAAgB,GACjB,MAAM,0CAA0C,CAAC;AAElD,OAAO,EACL,6BAA6B,EAC7B,yBAAyB,EACzB,yBAAyB,EACzB,wBAAwB,EACxB,qBAAqB,GACtB,MAAM,oCAAoC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AACtF,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,YAAY,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC/D,YAAY,EACV,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACnB,YAAY,EACZ,cAAc,GACf,MAAM,kBAAkB,CAAC"}