@fragmentsx/definition 0.0.3 → 0.2.0
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/constants/index.d.ts +189 -0
- package/dist/constants/index.d.ts.map +1 -0
- package/dist/helpers/findSchemaByPath.d.ts +9 -0
- package/dist/helpers/findSchemaByPath.d.ts.map +1 -0
- package/dist/helpers/getLayerSchema.d.ts +2 -0
- package/dist/helpers/getLayerSchema.d.ts.map +1 -0
- package/dist/helpers/getNormalizeLayer.d.ts +4 -0
- package/dist/helpers/getNormalizeLayer.d.ts.map +1 -0
- package/dist/helpers/layerField.d.ts +12 -0
- package/dist/helpers/layerField.d.ts.map +1 -0
- package/dist/helpers/normalizeLayer.d.ts +10 -0
- package/dist/helpers/normalizeLayer.d.ts.map +1 -0
- package/dist/helpers/parseLayerField.d.ts +20 -0
- package/dist/helpers/parseLayerField.d.ts.map +1 -0
- package/dist/index.cjs.js +515 -67
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.es.js +515 -67
- package/dist/schemas/ChildrenSchema.d.ts +5 -0
- package/dist/schemas/ChildrenSchema.d.ts.map +1 -0
- package/dist/schemas/CssOverrideSchema.d.ts +5 -0
- package/dist/schemas/CssOverrideSchema.d.ts.map +1 -0
- package/dist/schemas/GraphFieldSchema.d.ts +6 -0
- package/dist/schemas/GraphFieldSchema.d.ts.map +1 -0
- package/dist/schemas/InteractionsSchema.d.ts +5 -0
- package/dist/schemas/InteractionsSchema.d.ts.map +1 -0
- package/dist/schemas/LinkSchema.d.ts +6 -0
- package/dist/schemas/LinkSchema.d.ts.map +1 -0
- package/dist/schemas/OverridesSchema.d.ts +6 -0
- package/dist/schemas/OverridesSchema.d.ts.map +1 -0
- package/dist/schemas/helperNodes/BorderSchema.d.ts +12 -0
- package/dist/schemas/helperNodes/BorderSchema.d.ts.map +1 -0
- package/dist/schemas/helperNodes/ClassnameSchema.d.ts +9 -0
- package/dist/schemas/helperNodes/ClassnameSchema.d.ts.map +1 -0
- package/dist/schemas/helperNodes/CssChunkSchema.d.ts +9 -0
- package/dist/schemas/helperNodes/CssChunkSchema.d.ts.map +1 -0
- package/dist/schemas/helperNodes/ImagePaintSchema.d.ts +11 -0
- package/dist/schemas/helperNodes/ImagePaintSchema.d.ts.map +1 -0
- package/dist/schemas/helperNodes/InteractionSchema.d.ts +9 -0
- package/dist/schemas/helperNodes/InteractionSchema.d.ts.map +1 -0
- package/dist/schemas/helperNodes/LinearGradientSchema.d.ts +11 -0
- package/dist/schemas/helperNodes/LinearGradientSchema.d.ts.map +1 -0
- package/dist/schemas/helperNodes/LinkSchema.d.ts +11 -0
- package/dist/schemas/helperNodes/LinkSchema.d.ts.map +1 -0
- package/dist/schemas/helperNodes/PaintSchema.d.ts +13 -0
- package/dist/schemas/helperNodes/PaintSchema.d.ts.map +1 -0
- package/dist/schemas/helperNodes/PaintsSchema.d.ts +11 -0
- package/dist/schemas/helperNodes/PaintsSchema.d.ts.map +1 -0
- package/dist/schemas/helperNodes/StopColorSchema.d.ts +11 -0
- package/dist/schemas/helperNodes/StopColorSchema.d.ts.map +1 -0
- package/dist/schemas/helperNodes/interactions/MutateEventSchema.d.ts +7 -0
- package/dist/schemas/helperNodes/interactions/MutateEventSchema.d.ts.map +1 -0
- package/dist/schemas/nodes/CollectionSchema.d.ts +49 -0
- package/dist/schemas/nodes/CollectionSchema.d.ts.map +1 -0
- package/dist/schemas/nodes/FragmentSchema.d.ts +13 -0
- package/dist/schemas/nodes/FragmentSchema.d.ts.map +1 -0
- package/dist/schemas/nodes/FrameSchema.d.ts +52 -0
- package/dist/schemas/nodes/FrameSchema.d.ts.map +1 -0
- package/dist/schemas/nodes/InstanceSchema.d.ts +39 -0
- package/dist/schemas/nodes/InstanceSchema.d.ts.map +1 -0
- package/dist/schemas/nodes/StopColorSchema.d.ts +8 -0
- package/dist/schemas/nodes/StopColorSchema.d.ts.map +1 -0
- package/dist/schemas/nodes/TextSchema.d.ts +41 -0
- package/dist/schemas/nodes/TextSchema.d.ts.map +1 -0
- package/dist/schemas/styles/BorderSchema.d.ts +7 -0
- package/dist/schemas/styles/BorderSchema.d.ts.map +1 -0
- package/dist/schemas/styles/FillSchema.d.ts +9 -0
- package/dist/schemas/styles/FillSchema.d.ts.map +1 -0
- package/dist/schemas/styles/LayerSchema.d.ts +11 -0
- package/dist/schemas/styles/LayerSchema.d.ts.map +1 -0
- package/dist/schemas/styles/PositionSchema.d.ts +11 -0
- package/dist/schemas/styles/PositionSchema.d.ts.map +1 -0
- package/dist/schemas/styles/SceneSchema.d.ts +9 -0
- package/dist/schemas/styles/SceneSchema.d.ts.map +1 -0
- package/dist/schemas/styles/SizeSchema.d.ts +17 -0
- package/dist/schemas/styles/SizeSchema.d.ts.map +1 -0
- package/dist/schemas/styles/fields/BorderRadiusSchema.d.ts +3 -0
- package/dist/schemas/styles/fields/BorderRadiusSchema.d.ts.map +1 -0
- package/dist/schemas/styles/fields/OverflowSchema.d.ts +3 -0
- package/dist/schemas/styles/fields/OverflowSchema.d.ts.map +1 -0
- package/dist/schemas/variables/ArrayVariableSchema.d.ts +13 -0
- package/dist/schemas/variables/ArrayVariableSchema.d.ts.map +1 -0
- package/dist/schemas/variables/BooleanVariableSchema.d.ts +12 -0
- package/dist/schemas/variables/BooleanVariableSchema.d.ts.map +1 -0
- package/dist/schemas/variables/ColorVariableSchema.d.ts +12 -0
- package/dist/schemas/variables/ColorVariableSchema.d.ts.map +1 -0
- package/dist/schemas/variables/EnumVariableSchema.d.ts +13 -0
- package/dist/schemas/variables/EnumVariableSchema.d.ts.map +1 -0
- package/dist/schemas/variables/EventVariableSchema.d.ts +13 -0
- package/dist/schemas/variables/EventVariableSchema.d.ts.map +1 -0
- package/dist/schemas/variables/ImageVariableSchema.d.ts +12 -0
- package/dist/schemas/variables/ImageVariableSchema.d.ts.map +1 -0
- package/dist/schemas/variables/LinkVariableSchema.d.ts +12 -0
- package/dist/schemas/variables/LinkVariableSchema.d.ts.map +1 -0
- package/dist/schemas/variables/NumberVariableSchema.d.ts +16 -0
- package/dist/schemas/variables/NumberVariableSchema.d.ts.map +1 -0
- package/dist/schemas/variables/ObjectVariableSchema.d.ts +13 -0
- package/dist/schemas/variables/ObjectVariableSchema.d.ts.map +1 -0
- package/dist/schemas/variables/StringVariableSchema.d.ts +15 -0
- package/dist/schemas/variables/StringVariableSchema.d.ts.map +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -0
- package/package.json +4 -1
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
export declare const createConstants: <K extends string>(...constants: K[]) => { [P in K]: P; };
|
|
2
|
+
export declare const nodes: {
|
|
3
|
+
Fragment: "Fragment";
|
|
4
|
+
FragmentInstance: "FragmentInstance";
|
|
5
|
+
Instance: "Instance";
|
|
6
|
+
Collection: "Collection";
|
|
7
|
+
Breakpoint: "Breakpoint";
|
|
8
|
+
Frame: "Frame";
|
|
9
|
+
Image: "Image";
|
|
10
|
+
Text: "Text";
|
|
11
|
+
SolidPaintStyle: "SolidPaintStyle";
|
|
12
|
+
CssLink: "CssLink";
|
|
13
|
+
Variable: "Variable";
|
|
14
|
+
ComputedValue: "ComputedValue";
|
|
15
|
+
TransformValue: "TransformValue";
|
|
16
|
+
StopColor: "StopColor";
|
|
17
|
+
LinearGradient: "LinearGradient";
|
|
18
|
+
CssChunk: "CssChunk";
|
|
19
|
+
Border: "Border";
|
|
20
|
+
Paint: "Paint";
|
|
21
|
+
Link: "Link";
|
|
22
|
+
Classname: "Classname";
|
|
23
|
+
ImagePaint: "ImagePaint";
|
|
24
|
+
};
|
|
25
|
+
export declare const fragmentGrowingMode: {
|
|
26
|
+
auto: "auto";
|
|
27
|
+
fill: "fill";
|
|
28
|
+
};
|
|
29
|
+
export declare const borderType: {
|
|
30
|
+
None: "None";
|
|
31
|
+
Solid: "Solid";
|
|
32
|
+
Dashed: "Dashed";
|
|
33
|
+
Dotted: "Dotted";
|
|
34
|
+
};
|
|
35
|
+
export declare const linkTarget: {
|
|
36
|
+
_blank: "_blank";
|
|
37
|
+
none: "none";
|
|
38
|
+
};
|
|
39
|
+
export declare const paintMode: {
|
|
40
|
+
Image: "Image";
|
|
41
|
+
LinearGradient: "LinearGradient";
|
|
42
|
+
None: "None";
|
|
43
|
+
Solid: "Solid";
|
|
44
|
+
RadialGradient: "RadialGradient";
|
|
45
|
+
ConicGradient: "ConicGradient";
|
|
46
|
+
};
|
|
47
|
+
export declare const imagePaintScaleModes: {
|
|
48
|
+
Auto: "Auto";
|
|
49
|
+
Contain: "Contain";
|
|
50
|
+
Cover: "Cover";
|
|
51
|
+
};
|
|
52
|
+
export declare const constrain: {
|
|
53
|
+
Min: "Min";
|
|
54
|
+
Center: "Center";
|
|
55
|
+
Max: "Max";
|
|
56
|
+
Stretch: "Stretch";
|
|
57
|
+
Scale: "Scale";
|
|
58
|
+
};
|
|
59
|
+
export declare const positionType: {
|
|
60
|
+
absolute: "absolute";
|
|
61
|
+
relative: "relative";
|
|
62
|
+
};
|
|
63
|
+
export declare const sizing: {
|
|
64
|
+
Fixed: "Fixed";
|
|
65
|
+
Hug: "Hug";
|
|
66
|
+
Fill: "Fill";
|
|
67
|
+
Relative: "Relative";
|
|
68
|
+
};
|
|
69
|
+
export declare const layerMode: {
|
|
70
|
+
none: "none";
|
|
71
|
+
flex: "flex";
|
|
72
|
+
};
|
|
73
|
+
export declare const layerDirection: {
|
|
74
|
+
vertical: "vertical";
|
|
75
|
+
horizontal: "horizontal";
|
|
76
|
+
};
|
|
77
|
+
export declare const layerAlign: {
|
|
78
|
+
start: "start";
|
|
79
|
+
center: "center";
|
|
80
|
+
end: "end";
|
|
81
|
+
};
|
|
82
|
+
export declare const layerDistribute: {
|
|
83
|
+
start: "start";
|
|
84
|
+
center: "center";
|
|
85
|
+
end: "end";
|
|
86
|
+
"space-between": "space-between";
|
|
87
|
+
"space-around": "space-around";
|
|
88
|
+
};
|
|
89
|
+
export declare const textTransform: {
|
|
90
|
+
none: "none";
|
|
91
|
+
uppercase: "uppercase";
|
|
92
|
+
lowercase: "lowercase";
|
|
93
|
+
capitalize: "capitalize";
|
|
94
|
+
};
|
|
95
|
+
export declare const textDecorations: {
|
|
96
|
+
none: "none";
|
|
97
|
+
underline: "underline";
|
|
98
|
+
"line-through": "line-through";
|
|
99
|
+
};
|
|
100
|
+
export declare const effectType: {
|
|
101
|
+
loop: "loop";
|
|
102
|
+
appear: "appear";
|
|
103
|
+
hover: "hover";
|
|
104
|
+
tap: "tap";
|
|
105
|
+
};
|
|
106
|
+
export declare const effectName: {
|
|
107
|
+
fade: "fade";
|
|
108
|
+
slide: "slide";
|
|
109
|
+
bounce: "bounce";
|
|
110
|
+
wiggle: "wiggle";
|
|
111
|
+
increase: "increase";
|
|
112
|
+
};
|
|
113
|
+
export declare const variableType: {
|
|
114
|
+
Image: "Image";
|
|
115
|
+
Link: "Link";
|
|
116
|
+
Event: "Event";
|
|
117
|
+
String: "String";
|
|
118
|
+
Boolean: "Boolean";
|
|
119
|
+
Array: "Array";
|
|
120
|
+
Color: "Color";
|
|
121
|
+
ComponentInstance: "ComponentInstance";
|
|
122
|
+
Date: "Date";
|
|
123
|
+
Enum: "Enum";
|
|
124
|
+
Number: "Number";
|
|
125
|
+
Object: "Object";
|
|
126
|
+
};
|
|
127
|
+
export declare const whiteSpace: {
|
|
128
|
+
normal: "normal";
|
|
129
|
+
nowrap: "nowrap";
|
|
130
|
+
pre: "pre";
|
|
131
|
+
"pre-wrap": "pre-wrap";
|
|
132
|
+
"pre-line": "pre-line";
|
|
133
|
+
"break-spaces": "break-spaces";
|
|
134
|
+
};
|
|
135
|
+
export declare const overflow: {
|
|
136
|
+
visible: "visible";
|
|
137
|
+
hidden: "hidden";
|
|
138
|
+
scroll: "scroll";
|
|
139
|
+
};
|
|
140
|
+
export declare const variableTransforms: {
|
|
141
|
+
convert: "convert";
|
|
142
|
+
exists: "exists";
|
|
143
|
+
equals: "equals";
|
|
144
|
+
startWith: "startWith";
|
|
145
|
+
endWith: "endWith";
|
|
146
|
+
contains: "contains";
|
|
147
|
+
dateBefore: "dateBefore";
|
|
148
|
+
dateAfter: "dateAfter";
|
|
149
|
+
dateBetween: "dateBetween";
|
|
150
|
+
feature: "feature";
|
|
151
|
+
notFeature: "notFeature";
|
|
152
|
+
gt: "gt";
|
|
153
|
+
gte: "gte";
|
|
154
|
+
lt: "lt";
|
|
155
|
+
lte: "lte";
|
|
156
|
+
convertFromBoolean: "convertFromBoolean";
|
|
157
|
+
negative: "negative";
|
|
158
|
+
};
|
|
159
|
+
export declare const renderTarget: {
|
|
160
|
+
canvas: "canvas";
|
|
161
|
+
document: "document";
|
|
162
|
+
};
|
|
163
|
+
export declare const renderMode: {
|
|
164
|
+
viewport: "viewport";
|
|
165
|
+
parent: "parent";
|
|
166
|
+
fixed: "fixed";
|
|
167
|
+
};
|
|
168
|
+
export declare const interactions: {
|
|
169
|
+
appear: "appear";
|
|
170
|
+
click: "click";
|
|
171
|
+
mouseover: "mouseover";
|
|
172
|
+
};
|
|
173
|
+
export declare const eventMode: {
|
|
174
|
+
goal: "goal";
|
|
175
|
+
callback: "callback";
|
|
176
|
+
tracker: "tracker";
|
|
177
|
+
};
|
|
178
|
+
export declare const scopeTypes: {
|
|
179
|
+
AreaScope: "AreaScope";
|
|
180
|
+
InstanceScope: "InstanceScope";
|
|
181
|
+
FragmentScope: "FragmentScope";
|
|
182
|
+
CollectionScope: "CollectionScope";
|
|
183
|
+
CollectionItemScope: "CollectionItemScope";
|
|
184
|
+
};
|
|
185
|
+
export declare const cssChunkScopeTypes: {
|
|
186
|
+
Fragment: "Fragment";
|
|
187
|
+
Global: "Global";
|
|
188
|
+
};
|
|
189
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,GAAI,CAAC,SAAS,MAAM,gBAAgB,CAAC,EAAE,QACtC,CAAC,YAI7B,CAAC;AAEF,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;CAsBjB,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;CAAkC,CAAC;AAEnE,eAAO,MAAM,UAAU;;;;;CAAuD,CAAC;AAC/E,eAAO,MAAM,UAAU;;;CAAoC,CAAC;AAC5D,eAAO,MAAM,SAAS;;;;;;;CAOrB,CAAC;AACF,eAAO,MAAM,oBAAoB;;;;CAA8C,CAAC;AAChF,eAAO,MAAM,SAAS;;;;;;CAMrB,CAAC;AACF,eAAO,MAAM,YAAY;;;CAA0C,CAAC;AACpE,eAAO,MAAM,MAAM;;;;;CAAsD,CAAC;AAC1E,eAAO,MAAM,SAAS;;;CAAkC,CAAC;AACzD,eAAO,MAAM,cAAc;;;CAA4C,CAAC;AACxE,eAAO,MAAM,UAAU;;;;CAA4C,CAAC;AACpE,eAAO,MAAM,eAAe;;;;;;CAM3B,CAAC;AACF,eAAO,MAAM,aAAa;;;;;CAKzB,CAAC;AACF,eAAO,MAAM,eAAe;;;;CAI3B,CAAC;AACF,eAAO,MAAM,UAAU;;;;;CAAoD,CAAC;AAC5E,eAAO,MAAM,UAAU;;;;;;CAMtB,CAAC;AACF,eAAO,MAAM,YAAY;;;;;;;;;;;;;CAaxB,CAAC;AAEF,eAAO,MAAM,UAAU;;;;;;;CAOtB,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;CAAiD,CAAC;AAEvE,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;CAkB9B,CAAC;AAEF,eAAO,MAAM,YAAY;;;CAAwC,CAAC;AAElE,eAAO,MAAM,UAAU;;;;CAAiD,CAAC;AAEzE,eAAO,MAAM,YAAY;;;;CAAkD,CAAC;AAE5E,eAAO,MAAM,SAAS;;;;CAAiD,CAAC;AAExE,eAAO,MAAM,UAAU;;;;;;CAMtB,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;CAAwC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Schema, BaseSchema } from 'valibot';
|
|
2
|
+
/**
|
|
3
|
+
* Рекурсивно находит вложенную схему по пути (например, "address.city")
|
|
4
|
+
* @param schema - Корневая схема Valibot
|
|
5
|
+
* @param path - Путь через точки (например, "user.address.street")
|
|
6
|
+
* @returns Найденная вложенная схема или undefined
|
|
7
|
+
*/
|
|
8
|
+
export declare function findSchemaByPath(schema: Schema, path: string): BaseSchema | undefined;
|
|
9
|
+
//# sourceMappingURL=findSchemaByPath.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"findSchemaByPath.d.ts","sourceRoot":"","sources":["../../src/helpers/findSchemaByPath.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,UAAU,EAAE,MAAM,SAAS,CAAC;AAEvD;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,GACX,UAAU,GAAG,SAAS,CAmBxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getLayerSchema.d.ts","sourceRoot":"","sources":["../../src/helpers/getLayerSchema.ts"],"names":[],"mappings":"AAyBA,eAAO,MAAM,cAAc,WAAY,OAAO,QAoC7C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getNormalizeLayer.d.ts","sourceRoot":"","sources":["../../src/helpers/getNormalizeLayer.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,iBAAiB,UACrB,OAAO,cACF,OAAO,iBACJ,OAAO;;QAWvB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as v from "valibot";
|
|
2
|
+
export declare const linkValidator: v.CheckAction<unknown, undefined>;
|
|
3
|
+
export declare const isLink: (value: unknown) => boolean;
|
|
4
|
+
export declare const isVariableLink: (value: unknown) => boolean;
|
|
5
|
+
export declare const getMetadata: (schema: v.ObjectSchema<any, any>) => any;
|
|
6
|
+
export declare const layerField: <T>(schema: v.BaseSchema<any, any, any>, meta?: {
|
|
7
|
+
fallback: T;
|
|
8
|
+
overridable?: boolean;
|
|
9
|
+
variable?: boolean;
|
|
10
|
+
transform?: <TInput>(value: TInput) => TInput;
|
|
11
|
+
}) => v.SchemaWithPipe<[v.OptionalSchema<v.UnionSchema<v.BaseSchema<any, any, any>[], undefined>, undefined>, v.TransformAction<any, any>, v.MetadataAction<any, {}>]>;
|
|
12
|
+
//# sourceMappingURL=layerField.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layerField.d.ts","sourceRoot":"","sources":["../../src/helpers/layerField.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAI7B,eAAO,MAAM,aAAa,mCAEzB,CAAC;AAEF,eAAO,MAAM,MAAM,UAAW,OAAO,YACO,CAAC;AAE7C,eAAO,MAAM,cAAc,UAAW,OAAO,YACmB,CAAC;AAEjE,eAAO,MAAM,WAAW,WAAY,CAAC,CAAC,YAAY,CAAC,GAAG,EAAE,GAAG,CAAC,QAM3D,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,CAAC,UAClB,CAAC,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,SAC5B;IACL,QAAQ,EAAE,CAAC,CAAC;IACZ,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;CAC/C,qKAgCF,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as v from "valibot";
|
|
2
|
+
interface Options {
|
|
3
|
+
withFallback?: boolean;
|
|
4
|
+
overrideTarget?: unknown;
|
|
5
|
+
}
|
|
6
|
+
export declare const normalizeLayer: (schema: v.ObjectSchema<any, any>, rawLayer: unknown, options?: Options) => {
|
|
7
|
+
[k: string]: any;
|
|
8
|
+
} | null;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=normalizeLayer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"normalizeLayer.d.ts","sourceRoot":"","sources":["../../src/helpers/normalizeLayer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAG7B,UAAU,OAAO;IACf,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAKD,eAAO,MAAM,cAAc,WACjB,CAAC,CAAC,YAAY,CAAC,GAAG,EAAE,GAAG,CAAC,YACtB,OAAO,YACP,OAAO;;QA+ClB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare const parseLayerField: (layer: unknown, field: string, value: unknown) => {
|
|
2
|
+
readonly typed: true;
|
|
3
|
+
readonly success: true;
|
|
4
|
+
readonly output: any;
|
|
5
|
+
readonly issues: undefined;
|
|
6
|
+
} | {
|
|
7
|
+
readonly typed: true;
|
|
8
|
+
readonly success: false;
|
|
9
|
+
readonly output: any;
|
|
10
|
+
readonly issues: [any, ...any[]];
|
|
11
|
+
} | {
|
|
12
|
+
readonly typed: false;
|
|
13
|
+
readonly success: false;
|
|
14
|
+
readonly output: unknown;
|
|
15
|
+
readonly issues: [any, ...any[]];
|
|
16
|
+
} | {
|
|
17
|
+
success: boolean;
|
|
18
|
+
output: unknown;
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=parseLayerField.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parseLayerField.d.ts","sourceRoot":"","sources":["../../src/helpers/parseLayerField.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,eAAe,UACnB,OAAO,SACP,MAAM,SACN,OAAO;;;;;;;;;;;;;;;;;;CAUf,CAAC"}
|