@@ -7,12 +7,12 @@ slug: /interfaces
7
7
8
8
::: info
9
9
10
- Here are all documented Interfaces of AgileTs listed!
10
+ Here all Interfaces required for working with AgileTs are listed!
11
11
12
12
:::
13
13
14
14
15
- ### ` CreateLoggerConfig `
15
+ ## ` CreateLoggerConfig `
16
16
17
17
``` ts
18
18
export interface CreateLoggerConfigInterface {
@@ -41,7 +41,7 @@ export interface CreateLoggerConfigInterface {
41
41
<br />
42
42
43
43
44
- ### ` StorageMethods `
44
+ ## ` StorageMethods `
45
45
46
46
``` ts
47
47
export interface StorageMethodsInterface {
@@ -65,7 +65,7 @@ export interface StorageMethodsInterface {
65
65
<br />
66
66
67
67
68
- ### ` StateConfig `
68
+ ## ` StateConfig `
69
69
70
70
``` ts
71
71
export interface StateConfigInterface {
@@ -89,7 +89,7 @@ export interface StateConfigInterface {
89
89
<br />
90
90
91
91
92
- ### ` CollectionConfig `
92
+ ## ` CollectionConfig `
93
93
94
94
``` ts
95
95
export type CollectionConfig <DataType = DefaultItem > =
@@ -98,7 +98,7 @@ export type CollectionConfig<DataType = DefaultItem> =
98
98
collection : Collection <DataType >
99
99
) => CreateCollectionConfigInterface <DataType >);
100
100
```
101
- * [ CreateCollectionConfigInterface] ( #createcollectionconfig )
101
+ * [ CreateCollectionConfigInterface] ( #createcollectionconfig )
102
102
103
103
** There are two ways configuring the Collection:**
104
104
@@ -130,7 +130,7 @@ collection: Collection<DataType>
130
130
<br />
131
131
132
132
133
- ### ` CreateCollectionConfig `
133
+ ## ` CreateCollectionConfig `
134
134
135
135
``` ts
136
136
export interface CreateCollectionConfigInterface <DataType = DefaultItem > {
@@ -141,7 +141,6 @@ export interface CreateCollectionConfigInterface<DataType = DefaultItem> {
141
141
defaultGroupKey? : GroupKey ;
142
142
initialData? : Array <DataType >;
143
143
}
144
-
145
144
```
146
145
| Prop | Type | Default | Description | Required |
147
146
| -------------------| -------------------------------------------------| -----------| --------------------------------------------------------------------------------------------------------| ----------|
@@ -160,7 +159,7 @@ export interface CreateCollectionConfigInterface<DataType = DefaultItem> {
160
159
<br />
161
160
162
161
163
- ### ` CreateEventConfig `
162
+ ## ` CreateEventConfig `
164
163
165
164
``` ts
166
165
export interface CreateEventConfigInterface {
@@ -182,4 +181,139 @@ export interface CreateEventConfigInterface {
182
181
| ` delay ` | number (in ms) | undefined | If the Event should have an trigger delay | No |
183
182
| ` overlap ` | boolean | false | If a triggered Event can overlap another triggered Event from same Event Class | No |
184
183
| ` rerender ` | boolean | false | If a Event trigger can rerender a Component (useEvent) | No |
185
- | ` dependents ` | Observer[ ] | [ ] | Initial dependents of the State -> if State mutates, the dependents will be ingested into the Runtime too | No |
184
+ | ` dependents ` | Observer[ ] | [ ] | Initial dependents of the State -> if State mutates, the dependents will be ingested into the Runtime too | No |
185
+
186
+
187
+ <br />
188
+
189
+ ---
190
+
191
+ <br />
192
+
193
+
194
+ ## ` StateIngestConfig `
195
+
196
+ ``` ts
197
+ export interface StateIngestConfigInterface
198
+ extends StateRuntimeJobConfigInterface ,
199
+ IngestConfigInterface {
200
+ key? : RuntimeJobKey ;
201
+ }
202
+ ```
203
+ * [ RuntimeJobConfigInterface] ( #stateruntimejobconfig ) <br />
204
+ * [ IngestConfigInterface] ( #ingestconfig )
205
+
206
+ | Prop | Type | Default | Description | Required |
207
+ | ------| ------------------| -------------| ------------------------------------------------------------------------------------------------| ----------|
208
+ | key | string \| number | undefined | Key/Name of Job that gets created | No |
209
+
210
+
211
+ <br />
212
+
213
+ ---
214
+
215
+ <br />
216
+
217
+
218
+ ## ` StateRuntimeJobConfig `
219
+
220
+ ``` ts
221
+ export interface StateRuntimeJobConfigInterface
222
+ extends RuntimeJobConfigInterface {
223
+ overwrite? : boolean ;
224
+ storage? : boolean ;
225
+ }
226
+ ```
227
+ * [ RuntimeJobConfigInterface] ( #runtimejobconfig )
228
+
229
+ | Prop | Type | Default | Description | Required |
230
+ | -----------| ---------| ---------| ------------------------------------------------------------------------------------------------| ----------|
231
+ | overwrite | boolean | false | If whole State gets overwritten with the new Value (initialStateValue, previousStateValue, ..) | No |
232
+ | storage | boolean | true | If State changes get applied to the Storage (only if State got persisted (` persist ` )) | No |
233
+
234
+
235
+ <br />
236
+
237
+ ---
238
+
239
+ <br />
240
+
241
+
242
+ ## ` RuntimeJobConfig `
243
+
244
+ ``` ts
245
+ export interface RuntimeJobConfigInterface {
246
+ background? : boolean ;
247
+ sideEffects? : boolean ;
248
+ force? : boolean ;
249
+ }
250
+ ```
251
+
252
+ | Prop | Type | Default | Description | Required |
253
+ | -------------| ---------| ---------| --------------------------------------------------------------------------------------| ----------|
254
+ | background | boolean | false | If the Job runs through the Runtime in the background -> does not trigger a rerender | No |
255
+ | sideEffects | boolean | true | If sideEffects of the Job get executed | No |
256
+ | force | boolean | false | If the Job gets chased through the Runtime, no matter what happens | No |
257
+
258
+
259
+ <br />
260
+
261
+ ---
262
+
263
+ <br />
264
+
265
+
266
+ ## ` IngestConfig `
267
+
268
+ ``` ts
269
+ export interface IngestConfigInterface {
270
+ perform? : boolean ;
271
+ }
272
+ ```
273
+
274
+ | Prop | Type | Default | Description | Required |
275
+ | ----------| ------------------| -------------| ------------------------------------------------------------------------------------------------| ----------|
276
+ | perform | boolean | true | If Job gets performed immediately | No |
277
+
278
+
279
+ <br />
280
+
281
+ ---
282
+
283
+ <br />
284
+
285
+
286
+ ## ` PatchConfig `
287
+
288
+ ``` ts
289
+ export interface PatchConfigInterface extends StateIngestConfigInterface {
290
+ addNewProperties? : boolean ;
291
+ }
292
+ ```
293
+ * [ StateIngestConfigInterface] ( #stateingestconfig )
294
+
295
+ | Prop | Type | Default | Description | Required |
296
+ | -------------------| ------------------| -------------| ------------------------------------------------------------------------------------------------| ----------|
297
+ | addNewProperties | boolean | true | If new properties get added to the State Value | No |
298
+
299
+
300
+ <br />
301
+
302
+ ---
303
+
304
+ <br />
305
+
306
+
307
+ ## ` StatePersistentConfig `
308
+
309
+ ``` ts
310
+ export interface StatePersistentConfigInterface {
311
+ instantiate? : boolean ;
312
+ storageKeys? : StorageKey [];
313
+ }
314
+ ```
315
+
316
+ | Prop | Type | Default | Description | Required |
317
+ | -------------------| --------------------------| -------------| -------------------------------------------------------------------------------------------------------------------------| ----------|
318
+ | instantiate | boolean | true | If Persistent gets instantiated | No |
319
+ | storageKeys | Array<string \| number> | true | Key/Name of Storages which gets used to persist the State Value (NOTE: If not passed the default Storage will be used) | No |
0 commit comments