@react-typed-forms/schemas 1.0.0-dev.21 → 1.0.0-dev.22

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.
@@ -1,3 +1,3 @@
1
1
  {
2
- "nonCachedDurationMs": 2983.691521000117
2
+ "nonCachedDurationMs": 3000.2550149969757
3
3
  }
@@ -32,7 +32,7 @@ export declare function stringField(displayName: string, options?: Partial<Omit<
32
32
  isTypeField?: boolean | null | undefined;
33
33
  searchable?: boolean | null | undefined;
34
34
  options?: FieldOption[] | null | undefined;
35
- restrictions?: import("./types").SchemaRestrictions | null | undefined;
35
+ validators?: import("./types").SchemaValidator[] | null | undefined;
36
36
  type: FieldType.String;
37
37
  };
38
38
  export declare function stringOptionsField(displayName: string, ...options: FieldOption[]): (name: string) => SchemaField & {
@@ -57,7 +57,7 @@ export declare function intField(displayName: string, options?: Partial<Omit<Sch
57
57
  isTypeField?: boolean | null | undefined;
58
58
  searchable?: boolean | null | undefined;
59
59
  options?: FieldOption[] | null | undefined;
60
- restrictions?: import("./types").SchemaRestrictions | null | undefined;
60
+ validators?: import("./types").SchemaValidator[] | null | undefined;
61
61
  type: FieldType.Int;
62
62
  };
63
63
  export declare function boolField(displayName: string, options?: Partial<Omit<SchemaField, "type">>): (name: string) => SchemaField & {
@@ -72,7 +72,7 @@ export declare function boolField(displayName: string, options?: Partial<Omit<Sc
72
72
  isTypeField?: boolean | null | undefined;
73
73
  searchable?: boolean | null | undefined;
74
74
  options?: FieldOption[] | null | undefined;
75
- restrictions?: import("./types").SchemaRestrictions | null | undefined;
75
+ validators?: import("./types").SchemaValidator[] | null | undefined;
76
76
  type: FieldType.Bool;
77
77
  };
78
78
  export declare function compoundField<Other extends Partial<Omit<CompoundField, "type" | "schemaType">>>(displayName: string, fields: SchemaField[], other: Other): (name: string) => CompoundField & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-typed-forms/schemas",
3
- "version": "1.0.0-dev.21",
3
+ "version": "1.0.0-dev.22",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -32,12 +32,12 @@
32
32
  "devDependencies": {
33
33
  "@react-typed-forms/transform": "^0.1.0",
34
34
  "@types/react": "^18.2.28",
35
+ "markdown-magic": "^2.6.1",
35
36
  "microbundle": "^0.15.1",
36
37
  "nswag": "^13.18.2",
37
38
  "prettier": "^3.0.3",
38
39
  "rimraf": "^3.0.2",
39
- "typescript": "^5.2.2",
40
- "markdown-magic": "^2.6.1"
40
+ "typescript": "^5.2.2"
41
41
  },
42
42
  "gitHead": "698e16cd3ab31b7dd0528fc76536f4d3205ce8c6",
43
43
  "scripts": {