@makeswift/prop-controllers 0.0.0-snapshot-20240510204257 → 0.0.0-snapshot-20240510234802
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/index.cjs +75 -51
- package/dist/types/data.d.ts +12 -0
- package/dist/types/data.d.ts.map +1 -1
- package/dist/types/gap-x/gap-x.d.ts +147 -358
- package/dist/types/gap-x/gap-x.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/prop-controllers.d.ts +1 -0
- package/dist/types/prop-controllers.d.ts.map +1 -1
- package/dist/types/responsive-number/responsive-number.d.ts +69 -179
- package/dist/types/responsive-number/responsive-number.d.ts.map +1 -1
- package/dist/types/responsive-opacity/responsive-opacity.d.ts +72 -185
- package/dist/types/responsive-opacity/responsive-opacity.d.ts.map +1 -1
- package/dist/types/responsive-select/index.d.ts +2 -0
- package/dist/types/responsive-select/index.d.ts.map +1 -0
- package/dist/types/responsive-select/responsive-select.d.ts +76 -0
- package/dist/types/responsive-select/responsive-select.d.ts.map +1 -0
- package/dist/types/responsive-select/responsive-select.test.d.ts +2 -0
- package/dist/types/responsive-select/responsive-select.test.d.ts.map +1 -0
- package/dist/types/versioned.d.ts +119 -240
- package/dist/types/versioned.d.ts.map +1 -1
- package/package.json +1 -1
@@ -15,7 +15,7 @@ type VersionedPropData<Value, Key extends string = string> = Value | {
|
|
15
15
|
[ControlDataTypeKey]: Key;
|
16
16
|
value: Value;
|
17
17
|
};
|
18
|
-
export declare abstract class PropDef<Type = string, Value = any, PropData extends VersionedPropData<Value> = VersionedPropData<Value>, Descriptor extends VersionedDescriptor = VersionedDescriptor>
|
18
|
+
export declare abstract class PropDef<Type = string, Value = any, PropData extends VersionedPropData<Value> = VersionedPropData<Value>, Descriptor extends VersionedDescriptor = VersionedDescriptor> {
|
19
19
|
readonly __associated_types__?: () => {
|
20
20
|
Type: Type;
|
21
21
|
Value: Value;
|
@@ -23,11 +23,10 @@ export declare abstract class PropDef<Type = string, Value = any, PropData exten
|
|
23
23
|
Descriptor: Descriptor;
|
24
24
|
Discriminator: VersionDiscriminator | {};
|
25
25
|
};
|
26
|
-
readonly _callable: any;
|
27
|
-
constructor();
|
28
26
|
abstract get type(): Type;
|
29
27
|
abstract get schema(): z.ZodSchema;
|
30
28
|
abstract fromPropData(propData: PropData): Value;
|
29
|
+
abstract fromPropData(propData: PropData | undefined): Value | undefined;
|
31
30
|
abstract toPropData(data: Value, descriptor: VersionDiscriminator | {}): PropData;
|
32
31
|
}
|
33
32
|
type FillPresetType<RawOptions, Preset> = RawOptions extends {
|
@@ -36,159 +35,124 @@ type FillPresetType<RawOptions, Preset> = RawOptions extends {
|
|
36
35
|
preset?: Preset;
|
37
36
|
} : RawOptions;
|
38
37
|
type IfNullable<Opts extends Options<any>, R> = Opts extends Options<infer T> ? {} extends NonNullable<T> ? R : 'non-empty options are required' : never;
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
}, "strip", z.ZodTypeAny, { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
44
|
-
"@@makeswift/type": z.ZodLiteral<Key>;
|
45
|
-
value: ValueSchema;
|
46
|
-
}>, (undefined extends Key ? never : "@@makeswift/type") | (undefined extends ValueSchema["_output"] ? never : "value")>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
47
|
-
"@@makeswift/type": z.ZodLiteral<Key>;
|
48
|
-
value: ValueSchema;
|
49
|
-
}>, (undefined extends Key ? never : "@@makeswift/type") | (undefined extends ValueSchema["_output"] ? never : "value")>[k_1]; }, { [k_2 in keyof z.baseObjectInputType<{
|
50
|
-
"@@makeswift/type": z.ZodLiteral<Key>;
|
51
|
-
value: ValueSchema;
|
52
|
-
}>]: z.baseObjectInputType<{
|
53
|
-
"@@makeswift/type": z.ZodLiteral<Key>;
|
54
|
-
value: ValueSchema;
|
55
|
-
}>[k_2]; }>)["_output"]>>): VersionedDescriptor<VersionDiscriminator<Version, Key>, Type, Options<FillPresetType<RawOptions, (ValueSchema | z.ZodObject<{
|
56
|
-
"@@makeswift/type": z.ZodLiteral<Key>;
|
57
|
-
value: ValueSchema;
|
58
|
-
}, "strip", z.ZodTypeAny, { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
59
|
-
"@@makeswift/type": z.ZodLiteral<Key>;
|
60
|
-
value: ValueSchema;
|
61
|
-
}>, (undefined extends Key ? never : "@@makeswift/type") | (undefined extends ValueSchema["_output"] ? never : "value")>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
62
|
-
"@@makeswift/type": z.ZodLiteral<Key>;
|
63
|
-
value: ValueSchema;
|
64
|
-
}>, (undefined extends Key ? never : "@@makeswift/type") | (undefined extends ValueSchema["_output"] ? never : "value")>[k_1]; }, { [k_2 in keyof z.baseObjectInputType<{
|
65
|
-
"@@makeswift/type": z.ZodLiteral<Key>;
|
66
|
-
value: ValueSchema;
|
67
|
-
}>]: z.baseObjectInputType<{
|
68
|
-
"@@makeswift/type": z.ZodLiteral<Key>;
|
69
|
-
value: ValueSchema;
|
70
|
-
}>[k_2]; }>)["_output"]>>> & {
|
71
|
-
__associated_types__?: (() => {
|
72
|
-
Options: Options<FillPresetType<RawOptions, (ValueSchema | z.ZodObject<{
|
73
|
-
"@@makeswift/type": z.ZodLiteral<Key>;
|
74
|
-
value: ValueSchema;
|
75
|
-
}, "strip", z.ZodTypeAny, { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
76
|
-
"@@makeswift/type": z.ZodLiteral<Key>;
|
77
|
-
value: ValueSchema;
|
78
|
-
}>, (undefined extends Key ? never : "@@makeswift/type") | (undefined extends ValueSchema["_output"] ? never : "value")>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
79
|
-
"@@makeswift/type": z.ZodLiteral<Key>;
|
80
|
-
value: ValueSchema;
|
81
|
-
}>, (undefined extends Key ? never : "@@makeswift/type") | (undefined extends ValueSchema["_output"] ? never : "value")>[k_1]; }, { [k_2 in keyof z.baseObjectInputType<{
|
82
|
-
"@@makeswift/type": z.ZodLiteral<Key>;
|
83
|
-
value: ValueSchema;
|
84
|
-
}>]: z.baseObjectInputType<{
|
85
|
-
"@@makeswift/type": z.ZodLiteral<Key>;
|
86
|
-
value: ValueSchema;
|
87
|
-
}>[k_2]; }>)["_output"]>>;
|
88
|
-
Value: z.TypeOf<ValueSchema>;
|
89
|
-
}) | undefined;
|
38
|
+
type Select<T, U> = unknown extends T ? U : T;
|
39
|
+
declare class TypeArg<T> {
|
40
|
+
__associated_types__?: () => {
|
41
|
+
T: T;
|
90
42
|
};
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
43
|
+
}
|
44
|
+
export declare const typeArg: <T>() => TypeArg<T>;
|
45
|
+
export interface DefaultCtor<Opts, Descriptor> {
|
46
|
+
/**
|
47
|
+
* @deprecated Prop controllers are deprecated. Use `@makeswift/runtime/controls` instead.
|
48
|
+
*/
|
49
|
+
(options: Opts): Descriptor;
|
50
|
+
/**
|
51
|
+
* @deprecated Prop controllers are deprecated. Use `@makeswift/runtime/controls` instead.
|
52
|
+
*/
|
53
|
+
(): IfNullable<Opts, Descriptor>;
|
54
|
+
}
|
55
|
+
export declare const versionedPropDef: <Type extends "Backgrounds" | "Border" | "BorderRadius" | "Checkbox" | "Date" | "ElementID" | "Font" | "GapX" | "GapY" | "Grid" | "Image" | "Images" | "Link" | "Margin" | "NavigationLinks" | "Padding" | "Number" | "Shadows" | "ResponsiveColor" | "ResponsiveLength" | "ResponsiveNumber" | "ResponsiveOpacity" | "ResponsiveSelect" | "SocialLinks" | "TextArea" | "TextInput" | "Table" | "TableFormFields" | "TextStyle" | "Width" | "Video", ValueSchema extends z.ZodTypeAny, Version extends number, Key extends string, RawOptions, Constructor>(type: Type, valueSchema: ValueSchema, discriminator: VersionDiscriminator<Version, Key>, _rawOptionsType: TypeArg<RawOptions>, _ctor?: TypeArg<Constructor> | undefined) => PropDef<Type, z.TypeOf<ValueSchema>, (ValueSchema | z.ZodObject<{
|
56
|
+
"@@makeswift/type": z.ZodLiteral<Key>;
|
57
|
+
value: ValueSchema;
|
58
|
+
}, "strip", z.ZodTypeAny, { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
59
|
+
"@@makeswift/type": z.ZodLiteral<Key>;
|
60
|
+
value: ValueSchema;
|
61
|
+
}>, (undefined extends Key ? never : "@@makeswift/type") | (undefined extends ValueSchema["_output"] ? never : "value")>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
62
|
+
"@@makeswift/type": z.ZodLiteral<Key>;
|
63
|
+
value: ValueSchema;
|
64
|
+
}>, (undefined extends Key ? never : "@@makeswift/type") | (undefined extends ValueSchema["_output"] ? never : "value")>[k_1]; }, { [k_2 in keyof z.baseObjectInputType<{
|
65
|
+
"@@makeswift/type": z.ZodLiteral<Key>;
|
66
|
+
value: ValueSchema;
|
67
|
+
}>]: z.baseObjectInputType<{
|
68
|
+
"@@makeswift/type": z.ZodLiteral<Key>;
|
69
|
+
value: ValueSchema;
|
70
|
+
}>[k_2]; }>)["_output"], VersionedDescriptor<VersionDiscriminator<Version, Key>, Type, Options<FillPresetType<RawOptions, (ValueSchema | z.ZodObject<{
|
71
|
+
"@@makeswift/type": z.ZodLiteral<Key>;
|
72
|
+
value: ValueSchema;
|
73
|
+
}, "strip", z.ZodTypeAny, { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
74
|
+
"@@makeswift/type": z.ZodLiteral<Key>;
|
75
|
+
value: ValueSchema;
|
76
|
+
}>, (undefined extends Key ? never : "@@makeswift/type") | (undefined extends ValueSchema["_output"] ? never : "value")>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
77
|
+
"@@makeswift/type": z.ZodLiteral<Key>;
|
78
|
+
value: ValueSchema;
|
79
|
+
}>, (undefined extends Key ? never : "@@makeswift/type") | (undefined extends ValueSchema["_output"] ? never : "value")>[k_1]; }, { [k_2 in keyof z.baseObjectInputType<{
|
80
|
+
"@@makeswift/type": z.ZodLiteral<Key>;
|
81
|
+
value: ValueSchema;
|
82
|
+
}>]: z.baseObjectInputType<{
|
83
|
+
"@@makeswift/type": z.ZodLiteral<Key>;
|
84
|
+
value: ValueSchema;
|
85
|
+
}>[k_2]; }>)["_output"]>>> & {
|
86
|
+
__associated_types__?: (() => {
|
87
|
+
Options: Options<FillPresetType<RawOptions, (ValueSchema | z.ZodObject<{
|
88
|
+
"@@makeswift/type": z.ZodLiteral<Key>;
|
89
|
+
value: ValueSchema;
|
90
|
+
}, "strip", z.ZodTypeAny, { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
91
|
+
"@@makeswift/type": z.ZodLiteral<Key>;
|
92
|
+
value: ValueSchema;
|
93
|
+
}>, (undefined extends Key ? never : "@@makeswift/type") | (undefined extends ValueSchema["_output"] ? never : "value")>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
94
|
+
"@@makeswift/type": z.ZodLiteral<Key>;
|
95
|
+
value: ValueSchema;
|
96
|
+
}>, (undefined extends Key ? never : "@@makeswift/type") | (undefined extends ValueSchema["_output"] ? never : "value")>[k_1]; }, { [k_2 in keyof z.baseObjectInputType<{
|
97
|
+
"@@makeswift/type": z.ZodLiteral<Key>;
|
98
|
+
value: ValueSchema;
|
99
|
+
}>]: z.baseObjectInputType<{
|
100
|
+
"@@makeswift/type": z.ZodLiteral<Key>;
|
101
|
+
value: ValueSchema;
|
102
|
+
}>[k_2]; }>)["_output"]>>;
|
103
|
+
Value: z.TypeOf<ValueSchema>;
|
104
|
+
}) | undefined;
|
105
|
+
}> & Select<Constructor, DefaultCtor<Options<FillPresetType<RawOptions, (ValueSchema | z.ZodObject<{
|
106
|
+
"@@makeswift/type": z.ZodLiteral<Key>;
|
107
|
+
value: ValueSchema;
|
108
|
+
}, "strip", z.ZodTypeAny, { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
109
|
+
"@@makeswift/type": z.ZodLiteral<Key>;
|
110
|
+
value: ValueSchema;
|
111
|
+
}>, (undefined extends Key ? never : "@@makeswift/type") | (undefined extends ValueSchema["_output"] ? never : "value")>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
112
|
+
"@@makeswift/type": z.ZodLiteral<Key>;
|
113
|
+
value: ValueSchema;
|
114
|
+
}>, (undefined extends Key ? never : "@@makeswift/type") | (undefined extends ValueSchema["_output"] ? never : "value")>[k_1]; }, { [k_2 in keyof z.baseObjectInputType<{
|
115
|
+
"@@makeswift/type": z.ZodLiteral<Key>;
|
116
|
+
value: ValueSchema;
|
117
|
+
}>]: z.baseObjectInputType<{
|
118
|
+
"@@makeswift/type": z.ZodLiteral<Key>;
|
119
|
+
value: ValueSchema;
|
120
|
+
}>[k_2]; }>)["_output"]>>, VersionedDescriptor<VersionDiscriminator<Version, Key>, Type, Options<FillPresetType<RawOptions, (ValueSchema | z.ZodObject<{
|
121
|
+
"@@makeswift/type": z.ZodLiteral<Key>;
|
122
|
+
value: ValueSchema;
|
123
|
+
}, "strip", z.ZodTypeAny, { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
124
|
+
"@@makeswift/type": z.ZodLiteral<Key>;
|
125
|
+
value: ValueSchema;
|
126
|
+
}>, (undefined extends Key ? never : "@@makeswift/type") | (undefined extends ValueSchema["_output"] ? never : "value")>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
127
|
+
"@@makeswift/type": z.ZodLiteral<Key>;
|
128
|
+
value: ValueSchema;
|
129
|
+
}>, (undefined extends Key ? never : "@@makeswift/type") | (undefined extends ValueSchema["_output"] ? never : "value")>[k_1]; }, { [k_2 in keyof z.baseObjectInputType<{
|
130
|
+
"@@makeswift/type": z.ZodLiteral<Key>;
|
131
|
+
value: ValueSchema;
|
132
|
+
}>]: z.baseObjectInputType<{
|
133
|
+
"@@makeswift/type": z.ZodLiteral<Key>;
|
134
|
+
value: ValueSchema;
|
135
|
+
}>[k_2]; }>)["_output"]>>> & {
|
136
|
+
__associated_types__?: (() => {
|
137
|
+
Options: Options<FillPresetType<RawOptions, (ValueSchema | z.ZodObject<{
|
138
|
+
"@@makeswift/type": z.ZodLiteral<Key>;
|
139
|
+
value: ValueSchema;
|
140
|
+
}, "strip", z.ZodTypeAny, { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
141
|
+
"@@makeswift/type": z.ZodLiteral<Key>;
|
142
|
+
value: ValueSchema;
|
143
|
+
}>, (undefined extends Key ? never : "@@makeswift/type") | (undefined extends ValueSchema["_output"] ? never : "value")>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
144
|
+
"@@makeswift/type": z.ZodLiteral<Key>;
|
145
|
+
value: ValueSchema;
|
146
|
+
}>, (undefined extends Key ? never : "@@makeswift/type") | (undefined extends ValueSchema["_output"] ? never : "value")>[k_1]; }, { [k_2 in keyof z.baseObjectInputType<{
|
147
|
+
"@@makeswift/type": z.ZodLiteral<Key>;
|
148
|
+
value: ValueSchema;
|
149
|
+
}>]: z.baseObjectInputType<{
|
150
|
+
"@@makeswift/type": z.ZodLiteral<Key>;
|
151
|
+
value: ValueSchema;
|
152
|
+
}>[k_2]; }>)["_output"]>>;
|
153
|
+
Value: z.TypeOf<ValueSchema>;
|
154
|
+
}) | undefined;
|
155
|
+
}>> & {
|
192
156
|
__associated_types__?: (() => {
|
193
157
|
Type: Type;
|
194
158
|
Value: z.TypeOf<ValueSchema>;
|
@@ -246,92 +210,7 @@ export declare const versionedPropDef: <RawOptions>() => <Type extends "Backgrou
|
|
246
210
|
};
|
247
211
|
Discriminator: {} | VersionDiscriminator<Version, Key>;
|
248
212
|
}) | undefined;
|
249
|
-
readonly schemaV0: ValueSchema;
|
250
|
-
readonly schemaV1: z.ZodObject<{
|
251
|
-
"@@makeswift/type": z.ZodLiteral<Key>;
|
252
|
-
value: ValueSchema;
|
253
|
-
}, "strip", z.ZodTypeAny, { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
254
|
-
"@@makeswift/type": z.ZodLiteral<Key>;
|
255
|
-
value: ValueSchema;
|
256
|
-
}>, (undefined extends Key ? never : "@@makeswift/type") | (undefined extends ValueSchema["_output"] ? never : "value")>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
257
|
-
"@@makeswift/type": z.ZodLiteral<Key>;
|
258
|
-
value: ValueSchema;
|
259
|
-
}>, (undefined extends Key ? never : "@@makeswift/type") | (undefined extends ValueSchema["_output"] ? never : "value")>[k_1]; }, { [k_2 in keyof z.baseObjectInputType<{
|
260
|
-
"@@makeswift/type": z.ZodLiteral<Key>;
|
261
|
-
value: ValueSchema;
|
262
|
-
}>]: z.baseObjectInputType<{
|
263
|
-
"@@makeswift/type": z.ZodLiteral<Key>;
|
264
|
-
value: ValueSchema;
|
265
|
-
}>[k_2]; }>;
|
266
|
-
readonly schema: z.ZodUnion<[ValueSchema, z.ZodObject<{
|
267
|
-
"@@makeswift/type": z.ZodLiteral<Key>;
|
268
|
-
value: ValueSchema;
|
269
|
-
}, "strip", z.ZodTypeAny, { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
270
|
-
"@@makeswift/type": z.ZodLiteral<Key>;
|
271
|
-
value: ValueSchema;
|
272
|
-
}>, (undefined extends Key ? never : "@@makeswift/type") | (undefined extends ValueSchema["_output"] ? never : "value")>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
273
|
-
"@@makeswift/type": z.ZodLiteral<Key>;
|
274
|
-
value: ValueSchema;
|
275
|
-
}>, (undefined extends Key ? never : "@@makeswift/type") | (undefined extends ValueSchema["_output"] ? never : "value")>[k_1]; }, { [k_2 in keyof z.baseObjectInputType<{
|
276
|
-
"@@makeswift/type": z.ZodLiteral<Key>;
|
277
|
-
value: ValueSchema;
|
278
|
-
}>]: z.baseObjectInputType<{
|
279
|
-
"@@makeswift/type": z.ZodLiteral<Key>;
|
280
|
-
value: ValueSchema;
|
281
|
-
}>[k_2]; }>]>;
|
282
|
-
readonly type: Type;
|
283
213
|
readonly discriminator: VersionDiscriminator<Version, Key>;
|
284
|
-
__call__(options?: Options<FillPresetType<RawOptions, (ValueSchema | z.ZodObject<{
|
285
|
-
"@@makeswift/type": z.ZodLiteral<Key>;
|
286
|
-
value: ValueSchema;
|
287
|
-
}, "strip", z.ZodTypeAny, { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
288
|
-
"@@makeswift/type": z.ZodLiteral<Key>;
|
289
|
-
value: ValueSchema;
|
290
|
-
}>, (undefined extends Key ? never : "@@makeswift/type") | (undefined extends ValueSchema["_output"] ? never : "value")>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
291
|
-
"@@makeswift/type": z.ZodLiteral<Key>;
|
292
|
-
value: ValueSchema;
|
293
|
-
}>, (undefined extends Key ? never : "@@makeswift/type") | (undefined extends ValueSchema["_output"] ? never : "value")>[k_1]; }, { [k_2 in keyof z.baseObjectInputType<{
|
294
|
-
"@@makeswift/type": z.ZodLiteral<Key>;
|
295
|
-
value: ValueSchema;
|
296
|
-
}>]: z.baseObjectInputType<{
|
297
|
-
"@@makeswift/type": z.ZodLiteral<Key>;
|
298
|
-
value: ValueSchema;
|
299
|
-
}>[k_2]; }>)["_output"]>> | undefined): {
|
300
|
-
type: Type;
|
301
|
-
version: Version;
|
302
|
-
options: any;
|
303
|
-
};
|
304
|
-
fromPropData(propData: (ValueSchema | z.ZodObject<{
|
305
|
-
"@@makeswift/type": z.ZodLiteral<Key>;
|
306
|
-
value: ValueSchema;
|
307
|
-
}, "strip", z.ZodTypeAny, { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
308
|
-
"@@makeswift/type": z.ZodLiteral<Key>;
|
309
|
-
value: ValueSchema;
|
310
|
-
}>, (undefined extends Key ? never : "@@makeswift/type") | (undefined extends ValueSchema["_output"] ? never : "value")>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
311
|
-
"@@makeswift/type": z.ZodLiteral<Key>;
|
312
|
-
value: ValueSchema;
|
313
|
-
}>, (undefined extends Key ? never : "@@makeswift/type") | (undefined extends ValueSchema["_output"] ? never : "value")>[k_1]; }, { [k_2 in keyof z.baseObjectInputType<{
|
314
|
-
"@@makeswift/type": z.ZodLiteral<Key>;
|
315
|
-
value: ValueSchema;
|
316
|
-
}>]: z.baseObjectInputType<{
|
317
|
-
"@@makeswift/type": z.ZodLiteral<Key>;
|
318
|
-
value: ValueSchema;
|
319
|
-
}>[k_2]; }>)["_output"]): z.TypeOf<ValueSchema>;
|
320
|
-
toPropData(data: z.TypeOf<ValueSchema>, descriptor: {} | VersionDiscriminator<Version, Key>): import("ts-pattern/dist/types/helpers").Union<{
|
321
|
-
readonly "@@makeswift/type": Key;
|
322
|
-
readonly value: z.TypeOf<ValueSchema>;
|
323
|
-
}, z.TypeOf<ValueSchema>>;
|
324
|
-
readonly _callable: any;
|
325
|
-
apply(this: Function, thisArg: any, argArray?: any): any;
|
326
|
-
call(this: Function, thisArg: any, ...argArray: any[]): any;
|
327
|
-
bind(this: Function, thisArg: any, ...argArray: any[]): any;
|
328
|
-
toString(): string;
|
329
|
-
prototype: any;
|
330
|
-
readonly length: number;
|
331
|
-
arguments: any;
|
332
|
-
caller: Function;
|
333
|
-
readonly name: string;
|
334
|
-
[Symbol.hasInstance](value: any): boolean;
|
335
214
|
};
|
336
215
|
export {};
|
337
216
|
//# sourceMappingURL=versioned.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"versioned.d.ts","sourceRoot":"","sources":["../../src/versioned.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAE,KAAK,OAAO,EAAE,kBAAkB,EAAS,MAAM,oBAAoB,CAAA;
|
1
|
+
{"version":3,"file":"versioned.d.ts","sourceRoot":"","sources":["../../src/versioned.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAE,KAAK,OAAO,EAAE,kBAAkB,EAAS,MAAM,oBAAoB,CAAA;AAG5E,MAAM,MAAM,oBAAoB,CAC9B,OAAO,SAAS,MAAM,GAAG,MAAM,EAC/B,GAAG,SAAS,MAAM,GAAG,MAAM,IACzB;IACF,OAAO,EAAE,OAAO,CAAA;IACh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