typia 5.4.2-dev.20240202 → 5.4.3-dev.20240202

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 (104) hide show
  1. package/lib/CamelCase.d.ts +1 -1
  2. package/lib/PascalCase.d.ts +1 -1
  3. package/lib/Resolved.d.ts +1 -1
  4. package/lib/SnakeCase.d.ts +1 -1
  5. package/lib/factories/internal/metadata/iterate_metadata_native.js +20 -21
  6. package/lib/factories/internal/metadata/iterate_metadata_native.js.map +1 -1
  7. package/lib/functional/$FormDataReader/$FormDataReader.d.ts +7 -0
  8. package/lib/functional/$FormDataReader/$FormDataReader.js +80 -0
  9. package/lib/functional/$FormDataReader/$FormDataReader.js.map +1 -0
  10. package/lib/functional/$FormDataReader/index.d.ts +1 -0
  11. package/lib/functional/$FormDataReader/index.js +28 -0
  12. package/lib/functional/$FormDataReader/index.js.map +1 -0
  13. package/lib/functional/Namespace/http.d.ts +3 -1
  14. package/lib/functional/Namespace/http.js +6 -3
  15. package/lib/functional/Namespace/http.js.map +1 -1
  16. package/lib/http.d.ts +334 -0
  17. package/lib/http.js +78 -1
  18. package/lib/http.js.map +1 -1
  19. package/lib/programmers/RandomProgrammer.js +18 -0
  20. package/lib/programmers/RandomProgrammer.js.map +1 -1
  21. package/lib/programmers/http/HttpAssertFormDataProgrammer.d.ts +6 -0
  22. package/lib/programmers/http/HttpAssertFormDataProgrammer.js +41 -0
  23. package/lib/programmers/http/HttpAssertFormDataProgrammer.js.map +1 -0
  24. package/lib/programmers/http/HttpFormDataProgrammer.d.ts +9 -0
  25. package/lib/programmers/http/HttpFormDataProgrammer.js +191 -0
  26. package/lib/programmers/http/HttpFormDataProgrammer.js.map +1 -0
  27. package/lib/programmers/http/HttpIsFormDataProgrammer.d.ts +6 -0
  28. package/lib/programmers/http/HttpIsFormDataProgrammer.js +45 -0
  29. package/lib/programmers/http/HttpIsFormDataProgrammer.js.map +1 -0
  30. package/lib/programmers/http/HttpIsHeadersProgrammer.js +2 -2
  31. package/lib/programmers/http/HttpIsHeadersProgrammer.js.map +1 -1
  32. package/lib/programmers/http/HttpIsQueryProgrammer.js +2 -2
  33. package/lib/programmers/http/HttpIsQueryProgrammer.js.map +1 -1
  34. package/lib/programmers/http/HttpValidateFormDataProgrammer.d.ts +6 -0
  35. package/lib/programmers/http/HttpValidateFormDataProgrammer.js +41 -0
  36. package/lib/programmers/http/HttpValidateFormDataProgrammer.js.map +1 -0
  37. package/lib/programmers/http/HttpValidateHeadersProgrammer.js +2 -2
  38. package/lib/programmers/http/HttpValidateHeadersProgrammer.js.map +1 -1
  39. package/lib/programmers/http/HttpValidateQueryProgrammer.js +2 -2
  40. package/lib/programmers/http/HttpValidateQueryProgrammer.js.map +1 -1
  41. package/lib/programmers/internal/application_native.js +6 -0
  42. package/lib/programmers/internal/application_native.js.map +1 -1
  43. package/lib/programmers/json/JsonApplicationProgrammer.d.ts +1 -0
  44. package/lib/programmers/json/JsonApplicationProgrammer.js +46 -0
  45. package/lib/programmers/json/JsonApplicationProgrammer.js.map +1 -1
  46. package/lib/transformers/CallExpressionTransformer.js +19 -0
  47. package/lib/transformers/CallExpressionTransformer.js.map +1 -1
  48. package/lib/transformers/features/http/CreateHttpAssertFormDataTransformer.d.ts +4 -0
  49. package/lib/transformers/features/http/CreateHttpAssertFormDataTransformer.js +12 -0
  50. package/lib/transformers/features/http/CreateHttpAssertFormDataTransformer.js.map +1 -0
  51. package/lib/transformers/features/http/CreateHttpFormDataTransformer.d.ts +4 -0
  52. package/lib/transformers/features/http/CreateHttpFormDataTransformer.js +10 -0
  53. package/lib/transformers/features/http/CreateHttpFormDataTransformer.js.map +1 -0
  54. package/lib/transformers/features/http/CreateHttpIsFormDataTransformer.d.ts +4 -0
  55. package/lib/transformers/features/http/CreateHttpIsFormDataTransformer.js +10 -0
  56. package/lib/transformers/features/http/CreateHttpIsFormDataTransformer.js.map +1 -0
  57. package/lib/transformers/features/http/CreateHttpValidateFormDataTransformer.d.ts +4 -0
  58. package/lib/transformers/features/http/CreateHttpValidateFormDataTransformer.js +12 -0
  59. package/lib/transformers/features/http/CreateHttpValidateFormDataTransformer.js.map +1 -0
  60. package/lib/transformers/features/http/HttpAssertFormDataTransformer.d.ts +4 -0
  61. package/lib/transformers/features/http/HttpAssertFormDataTransformer.js +12 -0
  62. package/lib/transformers/features/http/HttpAssertFormDataTransformer.js.map +1 -0
  63. package/lib/transformers/features/http/HttpFormDataTransformer.d.ts +4 -0
  64. package/lib/transformers/features/http/HttpFormDataTransformer.js +10 -0
  65. package/lib/transformers/features/http/HttpFormDataTransformer.js.map +1 -0
  66. package/lib/transformers/features/http/HttpIsFormDataTransformer.d.ts +4 -0
  67. package/lib/transformers/features/http/HttpIsFormDataTransformer.js +10 -0
  68. package/lib/transformers/features/http/HttpIsFormDataTransformer.js.map +1 -0
  69. package/lib/transformers/features/http/HttpValidateFormDataTransformer.d.ts +4 -0
  70. package/lib/transformers/features/http/HttpValidateFormDataTransformer.js +12 -0
  71. package/lib/transformers/features/http/HttpValidateFormDataTransformer.js.map +1 -0
  72. package/lib/transformers/features/json/JsonApplicationTransformer.js +1 -2
  73. package/lib/transformers/features/json/JsonApplicationTransformer.js.map +1 -1
  74. package/package.json +1 -1
  75. package/src/CamelCase.ts +2 -0
  76. package/src/PascalCase.ts +2 -0
  77. package/src/Resolved.ts +2 -0
  78. package/src/SnakeCase.ts +2 -0
  79. package/src/factories/internal/metadata/iterate_metadata_native.ts +21 -20
  80. package/src/functional/$FormDataReader/$FormDataReader.ts +77 -0
  81. package/src/functional/$FormDataReader/index.ts +1 -0
  82. package/src/functional/Namespace/http.ts +3 -1
  83. package/src/http.ts +474 -1
  84. package/src/programmers/RandomProgrammer.ts +44 -0
  85. package/src/programmers/http/HttpAssertFormDataProgrammer.ts +75 -0
  86. package/src/programmers/http/HttpFormDataProgrammer.ts +247 -0
  87. package/src/programmers/http/HttpIsFormDataProgrammer.ts +82 -0
  88. package/src/programmers/http/HttpIsHeadersProgrammer.ts +2 -2
  89. package/src/programmers/http/HttpIsQueryProgrammer.ts +2 -2
  90. package/src/programmers/http/HttpValidateFormDataProgrammer.ts +75 -0
  91. package/src/programmers/http/HttpValidateHeadersProgrammer.ts +2 -2
  92. package/src/programmers/http/HttpValidateQueryProgrammer.ts +2 -2
  93. package/src/programmers/internal/application_native.ts +7 -1
  94. package/src/programmers/json/JsonApplicationProgrammer.ts +28 -1
  95. package/src/transformers/CallExpressionTransformer.ts +19 -0
  96. package/src/transformers/features/http/CreateHttpAssertFormDataTransformer.ts +12 -0
  97. package/src/transformers/features/http/CreateHttpFormDataTransformer.ts +9 -0
  98. package/src/transformers/features/http/CreateHttpIsFormDataTransformer.ts +9 -0
  99. package/src/transformers/features/http/CreateHttpValidateFormDataTransformer.ts +12 -0
  100. package/src/transformers/features/http/HttpAssertFormDataTransformer.ts +10 -0
  101. package/src/transformers/features/http/HttpFormDataTransformer.ts +9 -0
  102. package/src/transformers/features/http/HttpIsFormDataTransformer.ts +9 -0
  103. package/src/transformers/features/http/HttpValidateFormDataTransformer.ts +10 -0
  104. package/src/transformers/features/json/JsonApplicationTransformer.ts +1 -2
@@ -13,7 +13,7 @@ type Equal<X, Y> = X extends Y ? (Y extends X ? true : false) : false;
13
13
  type CamelizeMain<T> = T extends [never] ? never : T extends {
14
14
  valueOf(): boolean | bigint | number | string;
15
15
  } ? ValueOf<T> : T extends Function ? never : T extends object ? CamelizeObject<T> : T;
16
- type CamelizeObject<T extends object> = T extends Array<infer U> ? IsTuple<T> extends true ? CamelizeTuple<T> : CamelizeMain<U>[] : T extends Set<infer U> ? Set<CamelizeMain<U>> : T extends Map<infer K, infer V> ? Map<CamelizeMain<K>, CamelizeMain<V>> : T extends WeakSet<any> | WeakMap<any, any> ? never : T extends Date | Uint8Array | Uint8ClampedArray | Uint16Array | Uint32Array | BigUint64Array | Int8Array | Int16Array | Int32Array | BigInt64Array | Float32Array | Float64Array | ArrayBuffer | SharedArrayBuffer | DataView ? T : {
16
+ type CamelizeObject<T extends object> = T extends Array<infer U> ? IsTuple<T> extends true ? CamelizeTuple<T> : CamelizeMain<U>[] : T extends Set<infer U> ? Set<CamelizeMain<U>> : T extends Map<infer K, infer V> ? Map<CamelizeMain<K>, CamelizeMain<V>> : T extends WeakSet<any> | WeakMap<any, any> ? never : T extends Date | Uint8Array | Uint8ClampedArray | Uint16Array | Uint32Array | BigUint64Array | Int8Array | Int16Array | Int32Array | BigInt64Array | Float32Array | Float64Array | ArrayBuffer | SharedArrayBuffer | DataView | Blob | File ? T : {
17
17
  [Key in keyof T as CamelizeString<Key & string>]: CamelizeMain<T[Key]>;
18
18
  };
19
19
  type IsTuple<T extends readonly any[] | {
@@ -13,7 +13,7 @@ type Equal<X, Y> = X extends Y ? (Y extends X ? true : false) : false;
13
13
  type PascalizeMain<T> = T extends [never] ? never : T extends {
14
14
  valueOf(): boolean | bigint | number | string;
15
15
  } ? ValueOf<T> : T extends Function ? never : T extends object ? PascalizeObject<T> : T;
16
- type PascalizeObject<T extends object> = T extends Array<infer U> ? IsTuple<T> extends true ? PascalizeTuple<T> : PascalizeMain<U>[] : T extends Set<infer U> ? Set<PascalizeMain<U>> : T extends Map<infer K, infer V> ? Map<PascalizeMain<K>, PascalizeMain<V>> : T extends WeakSet<any> | WeakMap<any, any> ? never : T extends Date | Uint8Array | Uint8ClampedArray | Uint16Array | Uint32Array | BigUint64Array | Int8Array | Int16Array | Int32Array | BigInt64Array | Float32Array | Float64Array | ArrayBuffer | SharedArrayBuffer | DataView ? T : {
16
+ type PascalizeObject<T extends object> = T extends Array<infer U> ? IsTuple<T> extends true ? PascalizeTuple<T> : PascalizeMain<U>[] : T extends Set<infer U> ? Set<PascalizeMain<U>> : T extends Map<infer K, infer V> ? Map<PascalizeMain<K>, PascalizeMain<V>> : T extends WeakSet<any> | WeakMap<any, any> ? never : T extends Date | Uint8Array | Uint8ClampedArray | Uint16Array | Uint32Array | BigUint64Array | Int8Array | Int16Array | Int32Array | BigInt64Array | Float32Array | Float64Array | ArrayBuffer | SharedArrayBuffer | DataView | Blob | File ? T : {
17
17
  [Key in keyof T as PascalizeString<Key & string>]: PascalizeMain<T[Key]>;
18
18
  };
19
19
  type IsTuple<T extends readonly any[] | {
package/lib/Resolved.d.ts CHANGED
@@ -29,7 +29,7 @@
29
29
  export type Resolved<T> = Equal<T, ResolvedMain<T>> extends true ? T : ResolvedMain<T>;
30
30
  type Equal<X, Y> = X extends Y ? (Y extends X ? true : false) : false;
31
31
  type ResolvedMain<T> = T extends [never] ? never : ValueOf<T> extends boolean | number | bigint | string ? ValueOf<T> : T extends Function ? never : T extends object ? ResolvedObject<T> : ValueOf<T>;
32
- type ResolvedObject<T extends object> = T extends Array<infer U> ? IsTuple<T> extends true ? ResolvedTuple<T> : ResolvedMain<U>[] : T extends Set<infer U> ? Set<ResolvedMain<U>> : T extends Map<infer K, infer V> ? Map<ResolvedMain<K>, ResolvedMain<V>> : T extends WeakSet<any> | WeakMap<any, any> ? never : T extends Date | Uint8Array | Uint8ClampedArray | Uint16Array | Uint32Array | BigUint64Array | Int8Array | Int16Array | Int32Array | BigInt64Array | Float32Array | Float64Array | ArrayBuffer | SharedArrayBuffer | DataView ? T : {
32
+ type ResolvedObject<T extends object> = T extends Array<infer U> ? IsTuple<T> extends true ? ResolvedTuple<T> : ResolvedMain<U>[] : T extends Set<infer U> ? Set<ResolvedMain<U>> : T extends Map<infer K, infer V> ? Map<ResolvedMain<K>, ResolvedMain<V>> : T extends WeakSet<any> | WeakMap<any, any> ? never : T extends Date | Uint8Array | Uint8ClampedArray | Uint16Array | Uint32Array | BigUint64Array | Int8Array | Int16Array | Int32Array | BigInt64Array | Float32Array | Float64Array | ArrayBuffer | SharedArrayBuffer | DataView | Blob | File ? T : {
33
33
  [P in keyof T]: ResolvedMain<T[P]>;
34
34
  };
35
35
  type ResolvedTuple<T extends readonly any[]> = T extends [] ? [] : T extends [infer F] ? [ResolvedMain<F>] : T extends [infer F, ...infer Rest extends readonly any[]] ? [ResolvedMain<F>, ...ResolvedTuple<Rest>] : T extends [(infer F)?] ? [ResolvedMain<F>?] : T extends [(infer F)?, ...infer Rest extends readonly any[]] ? [ResolvedMain<F>?, ...ResolvedTuple<Rest>] : [];
@@ -13,7 +13,7 @@ type Equal<X, Y> = X extends Y ? (Y extends X ? true : false) : false;
13
13
  type SnakageMain<T> = T extends [never] ? never : T extends {
14
14
  valueOf(): boolean | bigint | number | string;
15
15
  } ? ValueOf<T> : T extends Function ? never : T extends object ? SnakageObject<T> : T;
16
- type SnakageObject<T extends object> = T extends Array<infer U> ? IsTuple<T> extends true ? SnakageTuple<T> : SnakageMain<U>[] : T extends Set<infer U> ? Set<SnakageMain<U>> : T extends Map<infer K, infer V> ? Map<SnakageMain<K>, SnakageMain<V>> : T extends WeakSet<any> | WeakMap<any, any> ? never : T extends Date | Uint8Array | Uint8ClampedArray | Uint16Array | Uint32Array | BigUint64Array | Int8Array | Int16Array | Int32Array | BigInt64Array | Float32Array | Float64Array | ArrayBuffer | SharedArrayBuffer | DataView ? T : {
16
+ type SnakageObject<T extends object> = T extends Array<infer U> ? IsTuple<T> extends true ? SnakageTuple<T> : SnakageMain<U>[] : T extends Set<infer U> ? Set<SnakageMain<U>> : T extends Map<infer K, infer V> ? Map<SnakageMain<K>, SnakageMain<V>> : T extends WeakSet<any> | WeakMap<any, any> ? never : T extends Date | Uint8Array | Uint8ClampedArray | Uint16Array | Uint32Array | BigUint64Array | Int8Array | Int16Array | Int32Array | BigInt64Array | Float32Array | Float64Array | ArrayBuffer | SharedArrayBuffer | DataView | Blob | File ? T : {
17
17
  [Key in keyof T as SnakageString<Key & string>]: SnakageMain<T[Key]>;
18
18
  };
19
19
  type IsTuple<T extends readonly any[] | {
@@ -107,7 +107,7 @@ var getBinaryProps = function (className) { return ({
107
107
  type: "number",
108
108
  }); }),
109
109
  }); };
110
- var SIMPLES = new Map(__spreadArray(__spreadArray(__spreadArray([
110
+ var SIMPLES = new Map(__spreadArray(__spreadArray(__spreadArray(__spreadArray([
111
111
  [
112
112
  "Date",
113
113
  {
@@ -135,10 +135,7 @@ var SIMPLES = new Map(__spreadArray(__spreadArray(__spreadArray([
135
135
  name: name,
136
136
  return: "string",
137
137
  }); })), false), [
138
- {
139
- name: "valueOf",
140
- return: "number",
141
- },
138
+ { name: "valueOf", return: "number" },
142
139
  ], false),
143
140
  },
144
141
  ],
@@ -152,10 +149,7 @@ var SIMPLES = new Map(__spreadArray(__spreadArray(__spreadArray([
152
149
  "trim",
153
150
  "replace",
154
151
  "substring",
155
- ].map(function (name) { return ({
156
- name: name,
157
- return: "string",
158
- }); }),
152
+ ].map(function (name) { return ({ name: name, return: "string" }); }),
159
153
  },
160
154
  ]
161
155
  ], __read([
@@ -172,20 +166,25 @@ var SIMPLES = new Map(__spreadArray(__spreadArray(__spreadArray([
172
166
  "Float64Array",
173
167
  ].map(function (name) { return [name, getBinaryProps(name)]; })), false), __read(["ArrayBuffer", "SharedArrayBuffer"].map(function (className) {
174
168
  var info = {
175
- methods: [
176
- {
177
- name: "slice",
178
- return: className,
179
- },
180
- ],
181
- properties: [
182
- {
183
- name: "byteLength",
184
- type: "number",
185
- },
186
- ],
169
+ methods: [{ name: "slice", return: className }],
170
+ properties: [{ name: "byteLength", type: "number" }],
187
171
  };
188
172
  return [className, info];
173
+ })), false), __read(["Blob", "File"].map(function (className) {
174
+ return [
175
+ className,
176
+ {
177
+ methods: [
178
+ { name: "arrayBuffer", return: "Promise<ArrayBuffer>" },
179
+ { name: "slice", return: "Blob" },
180
+ { name: "text", return: "Promise<string>" },
181
+ ],
182
+ properties: [
183
+ { name: "size", type: "number" },
184
+ { name: "type", type: "string" },
185
+ ],
186
+ },
187
+ ];
189
188
  })), false), [
190
189
  [
191
190
  "DataView",
@@ -1 +1 @@
1
- {"version":3,"file":"iterate_metadata_native.js","sourceRoot":"","sources":["../../../../src/factories/internal/metadata/iterate_metadata_native.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA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GAAG,CAAC,UAAC,IAAI,IAAK,OAAA,CAAC;IACf,IAAI,MAAA;IACJ,OAAO,EAAE,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,GAAG,CAAC,UAAC,IAAI,IAAK,OAAA,CAAC;QACxC,IAAI,MAAA;QACJ,MAAM,EAAE,SAAS;KAClB,CAAC,EAHuC,CAGvC,CAAC;CACJ,CAAC,EANc,CAMd,CAAC,CAAC"}
1
+ {"version":3,"file":"iterate_metadata_native.js","sourceRoot":"","sources":["../../../../src/factories/internal/metadata/iterate_metadata_native.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,sDAAqD;AAErD,iDAAgD;AAEzC,IAAM,uBAAuB,GAClC,UAAC,OAAuB;IACxB,OAAA,UAAC,IAAc,EAAE,IAAa;;;QAC5B,IAAM,SAAS,GAAG,QAAQ,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC;QAC1C,IAAM,IAAI,GAAW,yBAAW,CAAC,WAAW,CAAC,OAAO,CAAC,CACnD,IAAI,EACJ,IAAI,CAAC,SAAS,EAAE,CACjB,CAAC;QAEF,IAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QACjC,IAAI,MAAM,IAAI,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC;YAChC,qBAAS,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,EAAE,UAAC,GAAG,IAAK,OAAA,GAAG,EAAH,CAAG,CAAC,CAAC;YAChD,OAAO,IAAI,CAAC;QACd,CAAC;;YAED,KAAsB,IAAA,aAAA,SAAA,QAAQ,CAAA,kCAAA;gBAAzB,IAAM,OAAO,qBAAA;gBAChB,IACE,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,OAAO,CAAC,IAAI;oBACvD,SAAS,CAAC,OAAO,CAAC,EAClB,CAAC;oBACD,qB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ined;
2
+ export declare const number: (input: string | File | null) => number | null | undefined;
3
+ export declare const bigint: (input: string | File | null) => bigint | null | undefined;
4
+ export declare const string: (input: string | File | null) => string | null | undefined;
5
+ export declare const array: (input: any[], alternative: null | undefined) => any[] | null | undefined;
6
+ export declare const blob: (input: string | File | null) => Blob | null | undefined;
7
+ export declare const file: (input: string | File | null) => File | null | undefined;
@@ -0,0 +1,80 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.file = exports.blob = exports.array = exports.string = exports.bigint = exports.number = exports.boolean = void 0;
4
+ var boolean = function (input) {
5
+ return input instanceof File
6
+ ? input
7
+ : input === null
8
+ ? undefined
9
+ : input === "null"
10
+ ? null
11
+ : input.length === 0
12
+ ? true
13
+ : input === "true" || input === "1"
14
+ ? true
15
+ : input === "false" || input === "0"
16
+ ? false
17
+ : input;
18
+ }; // wrong type
19
+ exports.boolean = boolean;
20
+ var number = function (input) {
21
+ return input instanceof File
22
+ ? input
23
+ : !!(input === null || input === void 0 ? void 0 : input.length)
24
+ ? input === "null"
25
+ ? null
26
+ : toNumber(input)
27
+ : undefined;
28
+ };
29
+ exports.number = number;
30
+ var bigint = function (input) {
31
+ return input instanceof File
32
+ ? input
33
+ : !!(input === null || input === void 0 ? void 0 : input.length)
34
+ ? input === "null"
35
+ ? null
36
+ : toBigint(input)
37
+ : undefined;
38
+ };
39
+ exports.bigint = bigint;
40
+ var string = function (input) {
41
+ return input instanceof File
42
+ ? input
43
+ : input === null
44
+ ? undefined
45
+ : input === "null"
46
+ ? null
47
+ : input;
48
+ };
49
+ exports.string = string;
50
+ var array = function (input, alternative) {
51
+ return input.length ? input : alternative;
52
+ };
53
+ exports.array = array;
54
+ var blob = function (input) {
55
+ return (0, exports.file)(input);
56
+ };
57
+ exports.blob = blob;
58
+ var file = function (input) {
59
+ return input instanceof File
60
+ ? input
61
+ : input === null
62
+ ? undefined
63
+ : input === "null"
64
+ ? null
65
+ : input;
66
+ };
67
+ exports.file = file;
68
+ var toNumber = function (str) {
69
+ var value = Number(str);
70
+ return isNaN(value) ? str : value;
71
+ };
72
+ var toBigint = function (str) {
73
+ try {
74
+ return BigInt(str);
75
+ }
76
+ catch (_a) {
77
+ return str;
78
+ }
79
+ };
80
+ //# sourceMappingURL=$FormDataReader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"$FormDataReader.js","sourceRoot":"","sources":["../../../src/functional/$FormDataReader/$FormDataReader.ts"],"names":[],"mappings":";;;AAAO,IAAM,OAAO,GAAG,UACrB,KAA2B;IAE3B,OAAA,KAAK,YAAY,IAAI;QACnB,CAAC,CAAE,KAAa;QAChB,CAAC,CAAC,KAAK,KAAK,IAAI;YAChB,CAAC,CAAC,SAAS;YACX,CAAC,CAAC,KAAK,KAAK,MAAM;gBAClB,CAAC,CAAC,IAAI;gBACN,CAAC,CAAC,KAAK,CAAC,MAAM,KAAK,CAAC;oBACpB,CAAC,CAAC,IAAI;oBACN,CAAC,CAAC,KAAK,KAAK,MAAM,IAAI,KAAK,KAAK,GAAG;wBACnC,CAAC,CAAC,IAAI;wBACN,CAAC,CAAC,KAAK,KAAK,OAAO,IAAI,KAAK,KAAK,GAAG;4BACpC,CAAC,CAAC,KAAK;4BACP,CAAC,CAAE,KAAa;AAZlB,CAYkB,CAAC,CAAC,aAAa;AAftB,QAAA,OAAO,WAeC;AAEd,IAAM,MAAM,GAAG,UACpB,KAA2B;IAE3B,OAAA,KAAK,YAAY,IAAI;QACnB,CAAC,CAAE,KAAa;QAChB,CAAC,CAAC,CAAC,CAAC,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,MAAM,CAAA;YACjB,CAAC,CAAC,KAAK,KAAK,MAAM;gBAChB,CAAC,CAAC,IAAI;gBACN,CAAC,CAAE,QAAQ,CAAC,KAAK,CAAS;YAC5B,CAAC,CAAC,SAAS;AANb,CAMa,CAAC;AATH,QAAA,MAAM,UASH;AAET,IAAM,MAAM,GAAG,UACpB,KAA2B;IAE3B,OAAA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CAAC;IAClC,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC;AACpC,CAAC,CAAC;AAEF,IAAM,QAAQ,GAAG,UAAC,GAAW;IAC3B,IAAI,CAAC;QACH,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC;IACrB,CAAC;IAAC,WAAM,CAAC;QACP,OAAO,GAAG,CAAC;IACb,CAAC;AACH,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ export * as $FormDataReader from "./$FormDataReader";
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.$FormDataReader = void 0;
27
+ exports.$FormDataReader = __importStar(require("./$FormDataReader"));
28
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/functional/$FormDataReader/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qEAAqD"}
@@ -1,6 +1,8 @@
1
+ import { $FormDataReader } from "../$FormDataReader";
1
2
  import { $HeadersReader } from "../$HeadersReader";
2
3
  import { $ParameterReader } from "../$ParameterReader";
3
4
  import { $QueryReader } from "../$QueryReader";
4
- export declare const query: () => typeof $QueryReader;
5
+ export declare const formData: () => typeof $FormDataReader;
5
6
  export declare const headers: () => typeof $HeadersReader;
6
7
  export declare const parameter: () => typeof $ParameterReader;
8
+ export declare const query: () => typeof $QueryReader;
@@ -1,13 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.parameter = exports.headers = exports.query = void 0;
3
+ exports.query = exports.parameter = exports.headers = exports.formData = void 0;
4
+ var _FormDataReader_1 = require("../$FormDataReader");
4
5
  var _HeadersReader_1 = require("../$HeadersReader");
5
6
  var _ParameterReader_1 = require("../$ParameterReader");
6
7
  var _QueryReader_1 = require("../$QueryReader");
7
- var query = function () { return _QueryReader_1.$QueryReader; };
8
- exports.query = query;
8
+ var formData = function () { return _FormDataReader_1.$FormDataReader; };
9
+ exports.formData = formData;
9
10
  var headers = function () { return _HeadersReader_1.$HeadersReader; };
10
11
  exports.headers = headers;
11
12
  var parameter = function () { return _ParameterReader_1.$ParameterReader; };
12
13
  exports.parameter = parameter;
14
+ var query = function () { return _QueryReader_1.$QueryReader; };
15
+ exports.query = query;
13
16
  //# sourceMappingURL=http.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"http.js","sourceRoot":"","sources":["../../../src/functional/Namespace/http.ts"],"names":[],"mappings":";;;AAAA,oDAAmD;AACnD,wDAAuD;AACvD,gDAA+C;AAExC,IAAM,KAAK,GAAG,cAAM,OAAA,2BAAY,EAAZ,CAAY,CAAC;AAA3B,QAAA,KAAK,SAAsB;AACjC,IAAM,OAAO,GAAG,cAAM,OAAA,+BAAc,EAAd,CAAc,CAAC;AAA/B,QAAA,OAAO,WAAwB;AACrC,IAAM,SAAS,GAAG,cAAM,OAAA,mCAAgB,EAAhB,CAAgB,CAAC;AAAnC,QAAA,SAAS,aAA0B"}
1
+ {"version":3,"file":"http.js","sourceRoot":"","sources":["../../../src/functional/Namespace/http.ts"],"names":[],"mappings":";;;AAAA,sDAAqD;AACrD,oDAAmD;AACnD,wDAAuD;AACvD,gDAA+C;AAExC,IAAM,QAAQ,GAAG,cAAM,OAAA,iCAAe,EAAf,CAAe,CAAC;AAAjC,QAAA,QAAQ,YAAyB;AACvC,IAAM,OAAO,GAAG,cAAM,OAAA,+BAAc,EAAd,CAAc,CAAC;AAA/B,QAAA,OAAO,WAAwB;AACrC,IAAM,SAAS,GAAG,cAAM,OAAA,mCAAgB,EAAhB,CAAgB,CAAC;AAAnC,QAAA,SAAS,aAA0B;AACzC,IAAM,KAAK,GAAG,cAAM,OAAA,2BAAY,EAAZ,CAAY,CAAC;AAA3B,QAAA,KAAK,SAAsB"}
package/lib/http.d.ts CHANGED
@@ -1,6 +1,256 @@
1
1
  import { Atomic } from "./typings/Atomic";
2
2
  import { IValidation } from "./IValidation";
3
3
  import { Resolved } from "./Resolved";
4
+ /**
5
+ * > You must configure the generic argument `T`.
6
+ *
7
+ * Form data decoder.
8
+ *
9
+ * `typia.http.formData()` is a function decoding `FormData` instance, with
10
+ * automatic type casting to the expected type. When roperty type be defined
11
+ * as `boolean` or `Blob` type, `typia.http.formData()` will cast the value to
12
+ * the expected type when decoding.
13
+ *
14
+ * By the way, as `FormData` is not enough to express complex data structures,
15
+ * `typia.http.formData()` function has some limitations. If target type `T` is
16
+ * not following those restrictions, compilation errors would be occured.
17
+ *
18
+ * 1. Type `T` must be an object type
19
+ * 2. Do not allow dynamic property
20
+ * 3. Only `boolean`, `bigint`, `number`, `string`, `Blob`, `File` or their array types are allowed
21
+ * 4. By the way, union type never be not allowed
22
+ *
23
+ * Also, `typia.http.formData()` function does not perform validation about the
24
+ * decoded value. Therefore, if you can't sure that input data is following the
25
+ * `T` type, it would better to call one of below functions intead.
26
+ *
27
+ * - {@link assertFormData}
28
+ * - {@link isFormData}
29
+ * - {@link validateFormData}
30
+ *
31
+ * @template T Expected type of decoded value
32
+ * @param input FormData instance
33
+ * @returns Decoded form FormData
34
+ *
35
+ * @author Jeongho Nam - https://github.com/samchon
36
+ */
37
+ declare function formData(): never;
38
+ /**
39
+ * Form data decoder.
40
+ *
41
+ * `typia.http.formData()` is a function decoding `FormData` instance, with
42
+ * automatic type casting to the expected type. When roperty type be defined
43
+ * as `boolean` or `Blob` type, `typia.http.formData()` will cast the value to
44
+ * the expected type when decoding.
45
+ *
46
+ * By the way, as `FormData` is not enough to express complex data structures,
47
+ * `typia.http.formData()` function has some limitations. If target type `T` is
48
+ * not following those restrictions, compilation errors would be occured.
49
+ *
50
+ * 1. Type `T` must be an object type
51
+ * 2. Do not allow dynamic property
52
+ * 3. Only `boolean`, `bigint`, `number`, `string`, `Blob`, `File` or their array types are allowed
53
+ * 4. By the way, union type never be not allowed
54
+ *
55
+ * Also, `typia.http.formData()` function does not perform validation about the
56
+ * decoded value. Therefore, if you can't sure that input data is following the
57
+ * `T` type, it would better to call one of below functions intead.
58
+ *
59
+ * @template T Expected type of decoded value
60
+ * @param input FormData instance
61
+ * @returns Decoded form FormData
62
+ *
63
+ * @author Jeongho Nam - https://github.com/samchon
64
+ */
65
+ declare function formData<T extends object>(input: FormData): Resolved<T>;
66
+ declare const formDataPure: typeof formData;
67
+ export { formDataPure as formData };
68
+ /**
69
+ * > You must configure the generic argument `T`.
70
+ *
71
+ * Form data decoder with type assertion.
72
+ *
73
+ * `typia.http.assertFormData()` is a function decoding `FormData` instance, with
74
+ * automatic type casting to the expected type. When roperty type be defined
75
+ * as `boolean` or `Blob` type, `typia.http.assertFormData()` will cast the value
76
+ * to the expected type when decoding.
77
+ *
78
+ * Also, after decoding, `typia.http.assertFormData()` performs type assertion to
79
+ * the decoded value by combining with {@link assert} function. Therefore, when
80
+ * the decoded value is not following the `T` type, {@link TypeGuardError} would
81
+ * be thrown.
82
+ *
83
+ * By the way, as `FormData` is not enough to express complex data structures,
84
+ * `typia.http.assertFormData()` function has some limitations. If target type `T`
85
+ * is not following those restrictions, compilation errors would be occured.
86
+ *
87
+ * 1. Type `T` must be an object type
88
+ * 2. Do not allow dynamic property
89
+ * 3. Only `boolean`, `bigint`, `number`, `string`, `Blob`, `File` or their array types are allowed
90
+ * 4. By the way, union type never be not allowed
91
+ *
92
+ * @template T Expected type of decoded value
93
+ * @param input FormData instance
94
+ * @returns Decoded form FormData
95
+ *
96
+ * @author Jeongho Nam - https://github.com/samchon
97
+ */
98
+ declare function assertFormData(): never;
99
+ /**
100
+ * Form data decoder with type assertion.
101
+ *
102
+ * `typia.http.assertFormData()` is a function decoding `FormData` instance, with
103
+ * automatic type casting to the expected type. When roperty type be defined
104
+ * as `boolean` or `Blob` type, `typia.http.assertFormData()` will cast the value
105
+ * to the expected type when decoding.
106
+ *
107
+ * Also, after decoding, `typia.http.assertFormData()` performs type assertion to
108
+ * the decoded value by combining with {@link assert} function. Therefore, when
109
+ * the decoded value is not following the `T` type, {@link TypeGuardError} would
110
+ * be thrown.
111
+ *
112
+ * By the way, as `FormData` is not enough to express complex data structures,
113
+ * `typia.http.assertFormData()` function has some limitations. If target type `T`
114
+ * is not following those restrictions, compilation errors would be occured.
115
+ *
116
+ * 1. Type `T` must be an object type
117
+ * 2. Do not allow dynamic property
118
+ * 3. Only `boolean`, `bigint`, `number`, `string`, `Blob`, `File` or their array types are allowed
119
+ * 4. By the way, union type never be not allowed
120
+ *
121
+ * @template T Expected type of decoded value
122
+ * @param input FormData instance
123
+ * @returns Decoded form FormData
124
+ *
125
+ * @author Jeongho Nam - https://github.com/samchon
126
+ */
127
+ declare function assertFormData<T extends object>(input: FormData): Resolved<T>;
128
+ declare const assertFormDataPure: typeof assertFormData;
129
+ export { assertFormDataPure as assertFormData };
130
+ /**
131
+ * > You must configure the generic argument `T`.
132
+ *
133
+ * Form data decoder with type checking.
134
+ *
135
+ * `typia.http.isFormData()` is a function decoding `FormData` instance, with
136
+ * automatic type casting to the expected type. When roperty type be defined
137
+ * as `boolean` or `Blob` type, `typia.http.isFormData()` will cast the value
138
+ * to the expected type when decoding.
139
+ *
140
+ * Also, after decoding, `typia.http.isFormData()` performs type checking to the
141
+ * decoded value by combining with {@link is} function. Therefore, when the
142
+ * decoded value is not following the `T` type, `null` value would be returned.
143
+ *
144
+ * By the way, as `FormData` is not enough to express complex data structures,
145
+ * `typia.http.isFormData()` function has some limitations. If target type `T` is
146
+ * not following those restrictions, compilation errors would be occured.
147
+ *
148
+ * 1. Type `T` must be an object type
149
+ * 2. Do not allow dynamic property
150
+ * 3. Only `boolean`, `bigint`, `number`, `string`, `Blob`, `File` or their array types are allowed
151
+ * 4. By the way, union type never be not allowed
152
+ *
153
+ * @template T Expected type of decoded value
154
+ * @param input FormData instance
155
+ * @returns Decoded form FormData or `null` value
156
+ *
157
+ * @author Jeongho Nam - https://github.com/samchon
158
+ */
159
+ declare function isFormData(): never;
160
+ /**
161
+ * Form data decoder with type checking.
162
+ *
163
+ * `typia.http.isFormData()` is a function decoding `FormData` instance, with
164
+ * automatic type casting to the expected type. When roperty type be defined
165
+ * as `boolean` or `Blob` type, `typia.http.isFormData()` will cast the value
166
+ * to the expected type when decoding.
167
+ *
168
+ * Also, after decoding, `typia.http.isFormData()` performs type checking to the
169
+ * decoded value by combining with {@link is} function. Therefore, when the
170
+ * decoded value is not following the `T` type, `null` value would be returned.
171
+ *
172
+ * By the way, as `FormData` is not enough to express complex data structures,
173
+ * `typia.http.isFormData()` function has some limitations. If target type `T` is
174
+ * not following those restrictions, compilation errors would be occured.
175
+ *
176
+ * 1. Type `T` must be an object type
177
+ * 2. Do not allow dynamic property
178
+ * 3. Only `boolean`, `bigint`, `number`, `string`, `Blob`, `File` or their array types are allowed
179
+ * 4. By the way, union type never be not allowed
180
+ *
181
+ * @template T Expected type of decoded value
182
+ * @param input FormData instance
183
+ * @returns Decoded form FormData or `null` value
184
+ *
185
+ * @author Jeongho Nam - https://github.com/samchon
186
+ */
187
+ declare function isFormData<T extends object>(input: FormData): Resolved<T> | null;
188
+ declare const isFormDataPure: typeof isFormData;
189
+ export { isFormDataPure as isFormData };
190
+ /**
191
+ * > You must configure the generic argument `T`.
192
+ *
193
+ * Form data decoder with type validation.
194
+ *
195
+ * `typia.http.validateFormData()` is a function decoding `FormData` instance,
196
+ * with automatic type casting to the expected type. When roperty type be defined
197
+ * as `boolean` or `Blob` type, `typia.http.validateFormData()` will cast the
198
+ * value to the expected type when decoding.
199
+ *
200
+ * Also, after decoding, `typia.http.validateFormData()` performs type validation
201
+ * to the decoded value by combining with {@link validate} function. Therefore,
202
+ * when the decoded value is not following the `T` type,
203
+ * {@link IValidation.IFailure} would be returned. Otherwise,
204
+ * x@xxxx IValidation.ISuccess} would be returned.
205
+ *
206
+ * By the way, as `FormData` is not enough to express complex data structures,
207
+ * `typia.http.validateFormData()` function has some limitations. If target type
208
+ * `T` is not following those restrictions, compilation errors would be occured.
209
+ *
210
+ * 1. Type `T` must be an object type
211
+ * 2. Do not allow dynamic property
212
+ * 3. Only `boolean`, `bigint`, `number`, `string`, `Blob`, `File` or their array types are allowed
213
+ * 4. By the way, union type never be not allowed
214
+ *
215
+ * @template T Expected type of decoded value
216
+ * @param input FormData instance
217
+ * @returns Validation result with decoded form FormData
218
+ *
219
+ * @author Jeongho Nam - https://github.com/samchon
220
+ */
221
+ declare function validateFormData(): never;
222
+ /**
223
+ * Form data decoder with type validation.
224
+ *
225
+ * `typia.http.validateFormData()` is a function decoding `FormData` instance,
226
+ * with automatic type casting to the expected type. When roperty type be defined
227
+ * as `boolean` or `Blob` type, `typia.http.validateFormData()` will cast the
228
+ * value to the expected type when decoding.
229
+ *
230
+ * Also, after decoding, `typia.http.validateFormData()` performs type validation
231
+ * to the decoded value by combining with {@link validate} function. Therefore,
232
+ * when the decoded value is not following the `T` type,
233
+ * {@link IValidation.IFailure} would be returned. Otherwise,
234
+ * x@xxxx IValidation.ISuccess} would be returned.
235
+ *
236
+ * By the way, as `FormData` is not enough to express complex data structures,
237
+ * `typia.http.validateFormData()` function has some limitations. If target type
238
+ * `T` is not following those restrictions, compilation errors would be occured.
239
+ *
240
+ * 1. Type `T` must be an object type
241
+ * 2. Do not allow dynamic property
242
+ * 3. Only `boolean`, `bigint`, `number`, `string`, `Blob`, `File` or their array types are allowed
243
+ * 4. By the way, union type never be not allowed
244
+ *
245
+ * @template T Expected type of decoded value
246
+ * @param input FormData instance
247
+ * @returns Validation result with decoded form FormData
248
+ *
249
+ * @author Jeongho Nam - https://github.com/samchon
250
+ */
251
+ declare function validateFormData<T extends object>(input: FormData): IValidation<Resolved<T>>;
252
+ declare const validateFormDataPure: typeof validateFormData;
253
+ export { validateFormDataPure as validateFormData };
4
254
  /**
5
255
  * > You must configure the generic argument `T`.
6
256
  *
@@ -717,6 +967,90 @@ declare function parameter(): never;
717
967
  declare function parameter<T extends Atomic.Type | null>(input: string): Resolved<T>;
718
968
  declare const parameterPure: typeof parameter;
719
969
  export { parameterPure as parameter };
970
+ /**
971
+ * Creates a reusable {@link formdata} function.
972
+ *
973
+ * @danger You must configure the generic argument `T`
974
+ * @template T The type of the formdata object
975
+ * @throws compile error
976
+ *
977
+ * @author Jeongho Nam - https://github.com/samchon
978
+ */
979
+ declare function createFormData(): never;
980
+ /**
981
+ * Creates a reusable {@link formdata} function.
982
+ *
983
+ * @template T The type of the formdata object
984
+ * @returns A reusable `formdata` function
985
+ *
986
+ * @author Jeongho Nam - https://github.com/samchon
987
+ */
988
+ declare function createFormData<T extends object>(): (input: FormData) => T;
989
+ declare const createFormDataPure: typeof createFormData;
990
+ export { createFormDataPure as createFormData };
991
+ /**
992
+ * Creates a reusable {@link assertFormData} function.
993
+ *
994
+ * @danger You must configure the generic argument `T`
995
+ * @template T The type of the formdata object
996
+ * @throws compile error
997
+ *
998
+ * @author Jeongho Nam - https://github.com/samchon
999
+ */
1000
+ declare function createAssertFormData(): never;
1001
+ /**
1002
+ * Creates a reusable {@link assertFormData} function.
1003
+ *
1004
+ * @template T The type of the formdata object
1005
+ * @returns A reusable `assertFormData` function
1006
+ *
1007
+ * @author Jeongho Nam - https://github.com/samchon
1008
+ */
1009
+ declare function createAssertFormData<T extends object>(): (input: FormData) => T;
1010
+ declare const createAssertFormDataPure: typeof createAssertFormData;
1011
+ export { createAssertFormDataPure as createAssertFormData };
1012
+ /**
1013
+ * Creates a reusable {@link isFormData} function.
1014
+ *
1015
+ * @danger You must configure the generic argument `T`
1016
+ * @template T The type of the formdata object
1017
+ * @throws compile error
1018
+ *
1019
+ * @author Jeongho Nam - https://github.com/samchon
1020
+ */
1021
+ declare function createIsFormData(): never;
1022
+ /**
1023
+ * Creates a reusable {@link isFormData} function.
1024
+ *
1025
+ * @template T The type of the formdata object
1026
+ * @returns A reusable `isFormData` function
1027
+ *
1028
+ * @author Jeongho Nam - https://github.com/samchon
1029
+ */
1030
+ declare function createIsFormData<T extends object>(): (input: FormData) => T | null;
1031
+ declare const createIsFormDataPure: typeof createIsFormData;
1032
+ export { createIsFormDataPure as createIsFormData };
1033
+ /**
1034
+ * Creates a reusable {@link validateFormData} function.
1035
+ *
1036
+ * @danger You must configure the generic argument `T`
1037
+ * @template T The type of the formdata object
1038
+ * @throws compile error
1039
+ *
1040
+ * @author Jeongho Nam - https://github.com/samchon
1041
+ */
1042
+ declare function createValidateFormData(): never;
1043
+ /**
1044
+ * Creates a reusable {@link validateFormData} function.
1045
+ *
1046
+ * @template T The type of the formdata object
1047
+ * @returns A reusable `validateFormData` function
1048
+ *
1049
+ * @author Jeongho Nam - https://github.com/samchon
1050
+ */
1051
+ declare function createValidateFormData<T extends object>(): (input: FormData) => IValidation<Resolved<T>>;
1052
+ declare const createValidateFormDataPure: typeof createValidateFormData;
1053
+ export { createValidateFormDataPure as createValidateFormData };
720
1054
  /**
721
1055
  * Creates a reusable {@link query} function.
722
1056
  *