@formspec/core 0.1.0-alpha.19 → 0.1.0-alpha.21
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/core.d.ts +318 -34
- package/dist/extensions/index.d.ts +26 -0
- package/dist/extensions/index.d.ts.map +1 -1
- package/dist/guards.d.ts +55 -11
- package/dist/guards.d.ts.map +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/types/constraint-definitions.d.ts +11 -1
- package/dist/types/constraint-definitions.d.ts.map +1 -1
- package/dist/types/data-source.d.ts +8 -0
- package/dist/types/data-source.d.ts.map +1 -1
- package/dist/types/elements.d.ts +30 -0
- package/dist/types/elements.d.ts.map +1 -1
- package/dist/types/field-state.d.ts +4 -0
- package/dist/types/field-state.d.ts.map +1 -1
- package/dist/types/form-state.d.ts +2 -0
- package/dist/types/form-state.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/ir.d.ts +175 -22
- package/dist/types/ir.d.ts.map +1 -1
- package/dist/types/predicate.d.ts +4 -0
- package/dist/types/predicate.d.ts.map +1 -1
- package/dist/types/validity.d.ts +2 -0
- package/dist/types/validity.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/types/ir.d.ts
CHANGED
|
@@ -13,10 +13,14 @@
|
|
|
13
13
|
/**
|
|
14
14
|
* The current IR format version. Centralized here so all canonicalizers
|
|
15
15
|
* and consumers reference a single source of truth.
|
|
16
|
+
*
|
|
17
|
+
* @public
|
|
16
18
|
*/
|
|
17
19
|
export declare const IR_VERSION: "0.1.0";
|
|
18
20
|
/**
|
|
19
21
|
* A JSON-serializable value. All IR nodes must be representable as JSON.
|
|
22
|
+
*
|
|
23
|
+
* @public
|
|
20
24
|
*/
|
|
21
25
|
export type JsonValue = null | boolean | number | string | readonly JsonValue[] | {
|
|
22
26
|
readonly [key: string]: JsonValue;
|
|
@@ -24,6 +28,8 @@ export type JsonValue = null | boolean | number | string | readonly JsonValue[]
|
|
|
24
28
|
/**
|
|
25
29
|
* Describes the origin of an IR node.
|
|
26
30
|
* Enables diagnostics that point to the source of a contradiction or error.
|
|
31
|
+
*
|
|
32
|
+
* @public
|
|
27
33
|
*/
|
|
28
34
|
export interface Provenance {
|
|
29
35
|
/** The authoring surface that produced this node. */
|
|
@@ -45,6 +51,8 @@ export interface Provenance {
|
|
|
45
51
|
/**
|
|
46
52
|
* A path targeting a sub-field within a complex type.
|
|
47
53
|
* Used by constraints and annotations to target nested properties.
|
|
54
|
+
*
|
|
55
|
+
* @public
|
|
48
56
|
*/
|
|
49
57
|
export interface PathTarget {
|
|
50
58
|
/**
|
|
@@ -56,6 +64,8 @@ export interface PathTarget {
|
|
|
56
64
|
}
|
|
57
65
|
/**
|
|
58
66
|
* Discriminated union of all type representations in the IR.
|
|
67
|
+
*
|
|
68
|
+
* @public
|
|
59
69
|
*/
|
|
60
70
|
export type TypeNode = PrimitiveTypeNode | EnumTypeNode | ArrayTypeNode | ObjectTypeNode | RecordTypeNode | UnionTypeNode | ReferenceTypeNode | DynamicTypeNode | CustomTypeNode;
|
|
61
71
|
/**
|
|
@@ -63,29 +73,47 @@ export type TypeNode = PrimitiveTypeNode | EnumTypeNode | ArrayTypeNode | Object
|
|
|
63
73
|
*
|
|
64
74
|
* Note: integer is NOT a primitive kind — integer semantics are expressed
|
|
65
75
|
* via a `multipleOf: 1` constraint on a number type.
|
|
76
|
+
*
|
|
77
|
+
* @public
|
|
66
78
|
*/
|
|
67
79
|
export interface PrimitiveTypeNode {
|
|
68
80
|
readonly kind: "primitive";
|
|
69
81
|
readonly primitiveKind: "string" | "number" | "integer" | "bigint" | "boolean" | "null";
|
|
70
82
|
}
|
|
71
|
-
/**
|
|
83
|
+
/**
|
|
84
|
+
* A member of a static enum type.
|
|
85
|
+
*
|
|
86
|
+
* @public
|
|
87
|
+
*/
|
|
72
88
|
export interface EnumMember {
|
|
73
89
|
/** The serialized value stored in data. */
|
|
74
90
|
readonly value: string | number;
|
|
75
91
|
/** Optional per-member display name. */
|
|
76
92
|
readonly displayName?: string;
|
|
77
93
|
}
|
|
78
|
-
/**
|
|
94
|
+
/**
|
|
95
|
+
* Static enum type with members known at build time.
|
|
96
|
+
*
|
|
97
|
+
* @public
|
|
98
|
+
*/
|
|
79
99
|
export interface EnumTypeNode {
|
|
80
100
|
readonly kind: "enum";
|
|
81
101
|
readonly members: readonly EnumMember[];
|
|
82
102
|
}
|
|
83
|
-
/**
|
|
103
|
+
/**
|
|
104
|
+
* Array type with a single items type.
|
|
105
|
+
*
|
|
106
|
+
* @public
|
|
107
|
+
*/
|
|
84
108
|
export interface ArrayTypeNode {
|
|
85
109
|
readonly kind: "array";
|
|
86
110
|
readonly items: TypeNode;
|
|
87
111
|
}
|
|
88
|
-
/**
|
|
112
|
+
/**
|
|
113
|
+
* A named property within an object type.
|
|
114
|
+
*
|
|
115
|
+
* @public
|
|
116
|
+
*/
|
|
89
117
|
export interface ObjectProperty {
|
|
90
118
|
readonly name: string;
|
|
91
119
|
readonly type: TypeNode;
|
|
@@ -101,7 +129,11 @@ export interface ObjectProperty {
|
|
|
101
129
|
readonly annotations: readonly AnnotationNode[];
|
|
102
130
|
readonly provenance: Provenance;
|
|
103
131
|
}
|
|
104
|
-
/**
|
|
132
|
+
/**
|
|
133
|
+
* Object type with named properties.
|
|
134
|
+
*
|
|
135
|
+
* @public
|
|
136
|
+
*/
|
|
105
137
|
export interface ObjectTypeNode {
|
|
106
138
|
readonly kind: "object";
|
|
107
139
|
/**
|
|
@@ -122,18 +154,28 @@ export interface ObjectTypeNode {
|
|
|
122
154
|
*
|
|
123
155
|
* Emitted as `{ "type": "object", "additionalProperties": <value schema> }` in
|
|
124
156
|
* JSON Schema per spec 003 §2.5.
|
|
157
|
+
*
|
|
158
|
+
* @public
|
|
125
159
|
*/
|
|
126
160
|
export interface RecordTypeNode {
|
|
127
161
|
readonly kind: "record";
|
|
128
162
|
/** The type of each value in the dictionary. */
|
|
129
163
|
readonly valueType: TypeNode;
|
|
130
164
|
}
|
|
131
|
-
/**
|
|
165
|
+
/**
|
|
166
|
+
* Union type for non-enum unions. Nullable types are represented as `T | null`.
|
|
167
|
+
*
|
|
168
|
+
* @public
|
|
169
|
+
*/
|
|
132
170
|
export interface UnionTypeNode {
|
|
133
171
|
readonly kind: "union";
|
|
134
172
|
readonly members: readonly TypeNode[];
|
|
135
173
|
}
|
|
136
|
-
/**
|
|
174
|
+
/**
|
|
175
|
+
* Named type reference preserved for `$defs` and `$ref` emission.
|
|
176
|
+
*
|
|
177
|
+
* @public
|
|
178
|
+
*/
|
|
137
179
|
export interface ReferenceTypeNode {
|
|
138
180
|
readonly kind: "reference";
|
|
139
181
|
/**
|
|
@@ -148,7 +190,11 @@ export interface ReferenceTypeNode {
|
|
|
148
190
|
*/
|
|
149
191
|
readonly typeArguments: readonly TypeNode[];
|
|
150
192
|
}
|
|
151
|
-
/**
|
|
193
|
+
/**
|
|
194
|
+
* Dynamic type whose schema is resolved at runtime from a named data source.
|
|
195
|
+
*
|
|
196
|
+
* @public
|
|
197
|
+
*/
|
|
152
198
|
export interface DynamicTypeNode {
|
|
153
199
|
readonly kind: "dynamic";
|
|
154
200
|
readonly dynamicKind: "enum" | "schema";
|
|
@@ -160,7 +206,11 @@ export interface DynamicTypeNode {
|
|
|
160
206
|
*/
|
|
161
207
|
readonly parameterFields: readonly string[];
|
|
162
208
|
}
|
|
163
|
-
/**
|
|
209
|
+
/**
|
|
210
|
+
* Custom type registered by an extension.
|
|
211
|
+
*
|
|
212
|
+
* @public
|
|
213
|
+
*/
|
|
164
214
|
export interface CustomTypeNode {
|
|
165
215
|
readonly kind: "custom";
|
|
166
216
|
/**
|
|
@@ -178,6 +228,8 @@ export interface CustomTypeNode {
|
|
|
178
228
|
/**
|
|
179
229
|
* Discriminated union of all constraint types.
|
|
180
230
|
* Constraints are set-influencing: they narrow the set of valid values.
|
|
231
|
+
*
|
|
232
|
+
* @public
|
|
181
233
|
*/
|
|
182
234
|
export type ConstraintNode = NumericConstraintNode | LengthConstraintNode | PatternConstraintNode | ArrayCardinalityConstraintNode | EnumMemberConstraintNode | ConstConstraintNode | CustomConstraintNode;
|
|
183
235
|
/**
|
|
@@ -189,6 +241,8 @@ export type ConstraintNode = NumericConstraintNode | LengthConstraintNode | Patt
|
|
|
189
241
|
*
|
|
190
242
|
* Type applicability: may only attach to fields with `PrimitiveTypeNode("number")`
|
|
191
243
|
* or a `ReferenceTypeNode` that resolves to one.
|
|
244
|
+
*
|
|
245
|
+
* @public
|
|
192
246
|
*/
|
|
193
247
|
export interface NumericConstraintNode {
|
|
194
248
|
readonly kind: "constraint";
|
|
@@ -207,6 +261,8 @@ export interface NumericConstraintNode {
|
|
|
207
261
|
*
|
|
208
262
|
* Type applicability: `minLength`/`maxLength` require `PrimitiveTypeNode("string")`;
|
|
209
263
|
* `minItems`/`maxItems` require `ArrayTypeNode`.
|
|
264
|
+
*
|
|
265
|
+
* @public
|
|
210
266
|
*/
|
|
211
267
|
export interface LengthConstraintNode {
|
|
212
268
|
readonly kind: "constraint";
|
|
@@ -222,6 +278,8 @@ export interface LengthConstraintNode {
|
|
|
222
278
|
* all patterns must match simultaneously.
|
|
223
279
|
*
|
|
224
280
|
* Type applicability: requires `PrimitiveTypeNode("string")`.
|
|
281
|
+
*
|
|
282
|
+
* @public
|
|
225
283
|
*/
|
|
226
284
|
export interface PatternConstraintNode {
|
|
227
285
|
readonly kind: "constraint";
|
|
@@ -231,7 +289,11 @@ export interface PatternConstraintNode {
|
|
|
231
289
|
readonly path?: PathTarget;
|
|
232
290
|
readonly provenance: Provenance;
|
|
233
291
|
}
|
|
234
|
-
/**
|
|
292
|
+
/**
|
|
293
|
+
* Array uniqueness constraint.
|
|
294
|
+
*
|
|
295
|
+
* @public
|
|
296
|
+
*/
|
|
235
297
|
export interface ArrayCardinalityConstraintNode {
|
|
236
298
|
readonly kind: "constraint";
|
|
237
299
|
readonly constraintKind: "uniqueItems";
|
|
@@ -239,7 +301,11 @@ export interface ArrayCardinalityConstraintNode {
|
|
|
239
301
|
readonly path?: PathTarget;
|
|
240
302
|
readonly provenance: Provenance;
|
|
241
303
|
}
|
|
242
|
-
/**
|
|
304
|
+
/**
|
|
305
|
+
* Enum member subset constraint that only narrows the allowed member set.
|
|
306
|
+
*
|
|
307
|
+
* @public
|
|
308
|
+
*/
|
|
243
309
|
export interface EnumMemberConstraintNode {
|
|
244
310
|
readonly kind: "constraint";
|
|
245
311
|
readonly constraintKind: "allowedMembers";
|
|
@@ -247,7 +313,11 @@ export interface EnumMemberConstraintNode {
|
|
|
247
313
|
readonly path?: PathTarget;
|
|
248
314
|
readonly provenance: Provenance;
|
|
249
315
|
}
|
|
250
|
-
/**
|
|
316
|
+
/**
|
|
317
|
+
* Literal-value equality constraint.
|
|
318
|
+
*
|
|
319
|
+
* @public
|
|
320
|
+
*/
|
|
251
321
|
export interface ConstConstraintNode {
|
|
252
322
|
readonly kind: "constraint";
|
|
253
323
|
readonly constraintKind: "const";
|
|
@@ -255,7 +325,11 @@ export interface ConstConstraintNode {
|
|
|
255
325
|
readonly path?: PathTarget;
|
|
256
326
|
readonly provenance: Provenance;
|
|
257
327
|
}
|
|
258
|
-
/**
|
|
328
|
+
/**
|
|
329
|
+
* Extension-registered custom constraint.
|
|
330
|
+
*
|
|
331
|
+
* @public
|
|
332
|
+
*/
|
|
259
333
|
export interface CustomConstraintNode {
|
|
260
334
|
readonly kind: "constraint";
|
|
261
335
|
readonly constraintKind: "custom";
|
|
@@ -272,33 +346,75 @@ export interface CustomConstraintNode {
|
|
|
272
346
|
* Discriminated union of all annotation types.
|
|
273
347
|
* Annotations are value-influencing: they describe or present a field
|
|
274
348
|
* but do not affect which values are valid.
|
|
349
|
+
*
|
|
350
|
+
* @public
|
|
351
|
+
*/
|
|
352
|
+
export type AnnotationNode = DisplayNameAnnotationNode | DescriptionAnnotationNode | RemarksAnnotationNode | FormatAnnotationNode | PlaceholderAnnotationNode | DefaultValueAnnotationNode | DeprecatedAnnotationNode | FormatHintAnnotationNode | CustomAnnotationNode;
|
|
353
|
+
/**
|
|
354
|
+
* Display-name annotation.
|
|
355
|
+
*
|
|
356
|
+
* @public
|
|
275
357
|
*/
|
|
276
|
-
export type AnnotationNode = DisplayNameAnnotationNode | DescriptionAnnotationNode | FormatAnnotationNode | PlaceholderAnnotationNode | DefaultValueAnnotationNode | DeprecatedAnnotationNode | FormatHintAnnotationNode | CustomAnnotationNode;
|
|
277
358
|
export interface DisplayNameAnnotationNode {
|
|
278
359
|
readonly kind: "annotation";
|
|
279
360
|
readonly annotationKind: "displayName";
|
|
280
361
|
readonly value: string;
|
|
281
362
|
readonly provenance: Provenance;
|
|
282
363
|
}
|
|
364
|
+
/**
|
|
365
|
+
* Description annotation.
|
|
366
|
+
*
|
|
367
|
+
* @public
|
|
368
|
+
*/
|
|
283
369
|
export interface DescriptionAnnotationNode {
|
|
284
370
|
readonly kind: "annotation";
|
|
285
371
|
readonly annotationKind: "description";
|
|
286
372
|
readonly value: string;
|
|
287
373
|
readonly provenance: Provenance;
|
|
288
374
|
}
|
|
289
|
-
/**
|
|
375
|
+
/**
|
|
376
|
+
* Remarks annotation — programmatic-persona documentation carried via
|
|
377
|
+
* the `x-<vendor>-remarks` JSON Schema extension keyword.
|
|
378
|
+
*
|
|
379
|
+
* Populated from `@remarks` TSDoc tag content. SDK codegen can include
|
|
380
|
+
* this in doc comments; API Documenter renders the source `@remarks`
|
|
381
|
+
* natively in a dedicated Remarks section.
|
|
382
|
+
*
|
|
383
|
+
* @public
|
|
384
|
+
*/
|
|
385
|
+
export interface RemarksAnnotationNode {
|
|
386
|
+
readonly kind: "annotation";
|
|
387
|
+
readonly annotationKind: "remarks";
|
|
388
|
+
readonly value: string;
|
|
389
|
+
readonly provenance: Provenance;
|
|
390
|
+
}
|
|
391
|
+
/**
|
|
392
|
+
* Schema format annotation, for example `email`, `date`, or `uri`.
|
|
393
|
+
*
|
|
394
|
+
* @public
|
|
395
|
+
*/
|
|
290
396
|
export interface FormatAnnotationNode {
|
|
291
397
|
readonly kind: "annotation";
|
|
292
398
|
readonly annotationKind: "format";
|
|
293
399
|
readonly value: string;
|
|
294
400
|
readonly provenance: Provenance;
|
|
295
401
|
}
|
|
402
|
+
/**
|
|
403
|
+
* Placeholder annotation.
|
|
404
|
+
*
|
|
405
|
+
* @public
|
|
406
|
+
*/
|
|
296
407
|
export interface PlaceholderAnnotationNode {
|
|
297
408
|
readonly kind: "annotation";
|
|
298
409
|
readonly annotationKind: "placeholder";
|
|
299
410
|
readonly value: string;
|
|
300
411
|
readonly provenance: Provenance;
|
|
301
412
|
}
|
|
413
|
+
/**
|
|
414
|
+
* Default-value annotation.
|
|
415
|
+
*
|
|
416
|
+
* @public
|
|
417
|
+
*/
|
|
302
418
|
export interface DefaultValueAnnotationNode {
|
|
303
419
|
readonly kind: "annotation";
|
|
304
420
|
readonly annotationKind: "defaultValue";
|
|
@@ -306,6 +422,11 @@ export interface DefaultValueAnnotationNode {
|
|
|
306
422
|
readonly value: JsonValue;
|
|
307
423
|
readonly provenance: Provenance;
|
|
308
424
|
}
|
|
425
|
+
/**
|
|
426
|
+
* Deprecated annotation.
|
|
427
|
+
*
|
|
428
|
+
* @public
|
|
429
|
+
*/
|
|
309
430
|
export interface DeprecatedAnnotationNode {
|
|
310
431
|
readonly kind: "annotation";
|
|
311
432
|
readonly annotationKind: "deprecated";
|
|
@@ -316,6 +437,8 @@ export interface DeprecatedAnnotationNode {
|
|
|
316
437
|
/**
|
|
317
438
|
* UI rendering hint — does not affect schema validation.
|
|
318
439
|
* Unlike FormatAnnotationNode, this never emits a JSON Schema `format`.
|
|
440
|
+
*
|
|
441
|
+
* @public
|
|
319
442
|
*/
|
|
320
443
|
export interface FormatHintAnnotationNode {
|
|
321
444
|
readonly kind: "annotation";
|
|
@@ -324,7 +447,11 @@ export interface FormatHintAnnotationNode {
|
|
|
324
447
|
readonly format: string;
|
|
325
448
|
readonly provenance: Provenance;
|
|
326
449
|
}
|
|
327
|
-
/**
|
|
450
|
+
/**
|
|
451
|
+
* Extension-registered custom annotation.
|
|
452
|
+
*
|
|
453
|
+
* @public
|
|
454
|
+
*/
|
|
328
455
|
export interface CustomAnnotationNode {
|
|
329
456
|
readonly kind: "annotation";
|
|
330
457
|
readonly annotationKind: "custom";
|
|
@@ -333,7 +460,11 @@ export interface CustomAnnotationNode {
|
|
|
333
460
|
readonly value: JsonValue;
|
|
334
461
|
readonly provenance: Provenance;
|
|
335
462
|
}
|
|
336
|
-
/**
|
|
463
|
+
/**
|
|
464
|
+
* A single form field after canonicalization.
|
|
465
|
+
*
|
|
466
|
+
* @public
|
|
467
|
+
*/
|
|
337
468
|
export interface FieldNode {
|
|
338
469
|
readonly kind: "field";
|
|
339
470
|
/** The field's key in the data schema. */
|
|
@@ -357,9 +488,17 @@ export interface FieldNode {
|
|
|
357
488
|
readonly dominated: boolean;
|
|
358
489
|
}[];
|
|
359
490
|
}
|
|
360
|
-
/**
|
|
491
|
+
/**
|
|
492
|
+
* Union of layout node types.
|
|
493
|
+
*
|
|
494
|
+
* @public
|
|
495
|
+
*/
|
|
361
496
|
export type LayoutNode = GroupLayoutNode | ConditionalLayoutNode;
|
|
362
|
-
/**
|
|
497
|
+
/**
|
|
498
|
+
* A visual grouping of form elements.
|
|
499
|
+
*
|
|
500
|
+
* @public
|
|
501
|
+
*/
|
|
363
502
|
export interface GroupLayoutNode {
|
|
364
503
|
readonly kind: "group";
|
|
365
504
|
readonly label: string;
|
|
@@ -367,7 +506,11 @@ export interface GroupLayoutNode {
|
|
|
367
506
|
readonly elements: readonly FormIRElement[];
|
|
368
507
|
readonly provenance: Provenance;
|
|
369
508
|
}
|
|
370
|
-
/**
|
|
509
|
+
/**
|
|
510
|
+
* Conditional visibility based on another field's value.
|
|
511
|
+
*
|
|
512
|
+
* @public
|
|
513
|
+
*/
|
|
371
514
|
export interface ConditionalLayoutNode {
|
|
372
515
|
readonly kind: "conditional";
|
|
373
516
|
/** The field whose value triggers visibility. */
|
|
@@ -378,9 +521,17 @@ export interface ConditionalLayoutNode {
|
|
|
378
521
|
readonly elements: readonly FormIRElement[];
|
|
379
522
|
readonly provenance: Provenance;
|
|
380
523
|
}
|
|
381
|
-
/**
|
|
524
|
+
/**
|
|
525
|
+
* Union of all IR element types.
|
|
526
|
+
*
|
|
527
|
+
* @public
|
|
528
|
+
*/
|
|
382
529
|
export type FormIRElement = FieldNode | LayoutNode;
|
|
383
|
-
/**
|
|
530
|
+
/**
|
|
531
|
+
* A named type definition stored in the type registry.
|
|
532
|
+
*
|
|
533
|
+
* @public
|
|
534
|
+
*/
|
|
384
535
|
export interface TypeDefinition {
|
|
385
536
|
/** The fully-qualified reference name (key in the registry). */
|
|
386
537
|
readonly name: string;
|
|
@@ -400,6 +551,8 @@ export interface TypeDefinition {
|
|
|
400
551
|
* and Generate (UI Schema) phases.
|
|
401
552
|
*
|
|
402
553
|
* Serializable to JSON — no live compiler objects.
|
|
554
|
+
*
|
|
555
|
+
* @public
|
|
403
556
|
*/
|
|
404
557
|
export interface FormIR {
|
|
405
558
|
readonly kind: "form-ir";
|
package/dist/types/ir.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ir.d.ts","sourceRoot":"","sources":["../../src/types/ir.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAMH
|
|
1
|
+
{"version":3,"file":"ir.d.ts","sourceRoot":"","sources":["../../src/types/ir.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAMH;;;;;GAKG;AACH,eAAO,MAAM,UAAU,EAAG,OAAgB,CAAC;AAM3C;;;;GAIG;AACH,MAAM,MAAM,SAAS,GACjB,IAAI,GACJ,OAAO,GACP,MAAM,GACN,MAAM,GACN,SAAS,SAAS,EAAE,GACpB;IAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,CAAC;AA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AU,CAAC;CACjC"}
|
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
*
|
|
9
9
|
* @typeParam K - The field name to check
|
|
10
10
|
* @typeParam V - The value to compare against
|
|
11
|
+
*
|
|
12
|
+
* @public
|
|
11
13
|
*/
|
|
12
14
|
export interface EqualsPredicate<K extends string, V> {
|
|
13
15
|
/** Predicate type discriminator */
|
|
@@ -24,6 +26,8 @@ export interface EqualsPredicate<K extends string, V> {
|
|
|
24
26
|
* - `OneOfPredicate` - field value is one of several options
|
|
25
27
|
* - `NotPredicate` - negation of another predicate
|
|
26
28
|
* - `AndPredicate` / `OrPredicate` - logical combinations
|
|
29
|
+
*
|
|
30
|
+
* @public
|
|
27
31
|
*/
|
|
28
32
|
export type Predicate<K extends string = string, V = unknown> = EqualsPredicate<K, V>;
|
|
29
33
|
//# sourceMappingURL=predicate.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"predicate.d.ts","sourceRoot":"","sources":["../../src/types/predicate.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH
|
|
1
|
+
{"version":3,"file":"predicate.d.ts","sourceRoot":"","sources":["../../src/types/predicate.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;;GAOG;AACH,MAAM,WAAW,eAAe,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC;IAClD,mCAAmC;IACnC,QAAQ,CAAC,UAAU,EAAE,QAAQ,CAAC;IAC9B,iCAAiC;IACjC,QAAQ,CAAC,KAAK,EAAE,CAAC,CAAC;IAClB,sCAAsC;IACtC,QAAQ,CAAC,KAAK,EAAE,CAAC,CAAC;CACnB;AAED;;;;;;;;;GASG;AACH,MAAM,MAAM,SAAS,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,EAAE,CAAC,GAAG,OAAO,IAAI,eAAe,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC"}
|
package/dist/types/validity.d.ts
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
* - `"valid"` - All validations pass
|
|
5
5
|
* - `"invalid"` - One or more validations failed
|
|
6
6
|
* - `"unknown"` - Validation state not yet determined (e.g., async validation pending)
|
|
7
|
+
*
|
|
8
|
+
* @public
|
|
7
9
|
*/
|
|
8
10
|
export type Validity = "valid" | "invalid" | "unknown";
|
|
9
11
|
//# sourceMappingURL=validity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validity.d.ts","sourceRoot":"","sources":["../../src/types/validity.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"validity.d.ts","sourceRoot":"","sources":["../../src/types/validity.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,CAAC"}
|