@vue/shared 3.2.47 → 3.3.0-alpha.2
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/shared.cjs.js +299 -490
- package/dist/shared.cjs.prod.js +298 -488
- package/dist/shared.d.ts +308 -363
- package/dist/shared.esm-bundler.js +301 -493
- package/package.json +1 -1
package/dist/shared.d.ts
CHANGED
|
@@ -1,363 +1,308 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
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
|
-
|
|
192
|
-
|
|
193
|
-
*
|
|
194
|
-
*
|
|
195
|
-
*/
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
* Stable slots that only reference slot props or context state. The slot
|
|
310
|
-
* can fully capture its own dependencies so when passed down the parent won't
|
|
311
|
-
* need to force the child to update.
|
|
312
|
-
*/
|
|
313
|
-
STABLE = 1,
|
|
314
|
-
/**
|
|
315
|
-
* Slots that reference scope variables (v-for or an outer slot prop), or
|
|
316
|
-
* has conditional structure (v-if, v-for). The parent will need to force
|
|
317
|
-
* the child to update because the slot does not fully capture its dependencies.
|
|
318
|
-
*/
|
|
319
|
-
DYNAMIC = 2,
|
|
320
|
-
/**
|
|
321
|
-
* `<slot/>` being forwarded into a child component. Whether the parent needs
|
|
322
|
-
* to update the child is dependent on what kind of slots the parent itself
|
|
323
|
-
* received. This has to be refined at runtime, when the child's vnode
|
|
324
|
-
* is being created (in `normalizeChildren`)
|
|
325
|
-
*/
|
|
326
|
-
FORWARDED = 3
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
/**
|
|
330
|
-
* Dev only
|
|
331
|
-
*/
|
|
332
|
-
export declare const slotFlagsText: {
|
|
333
|
-
1: string;
|
|
334
|
-
2: string;
|
|
335
|
-
3: string;
|
|
336
|
-
};
|
|
337
|
-
|
|
338
|
-
export declare function stringifyStyle(styles: NormalizedStyle | string | undefined): string;
|
|
339
|
-
|
|
340
|
-
/**
|
|
341
|
-
* For converting {{ interpolation }} values to displayed strings.
|
|
342
|
-
* @private
|
|
343
|
-
*/
|
|
344
|
-
export declare const toDisplayString: (val: unknown) => string;
|
|
345
|
-
|
|
346
|
-
/**
|
|
347
|
-
* @private
|
|
348
|
-
*/
|
|
349
|
-
export declare const toHandlerKey: (str: string) => string;
|
|
350
|
-
|
|
351
|
-
/**
|
|
352
|
-
* Only conerces number-like strings
|
|
353
|
-
* "123-foo" will be returned as-is
|
|
354
|
-
*/
|
|
355
|
-
export declare const toNumber: (val: any) => any;
|
|
356
|
-
|
|
357
|
-
export declare const toRawType: (value: unknown) => string;
|
|
358
|
-
|
|
359
|
-
export declare const toTypeString: (value: unknown) => string;
|
|
360
|
-
|
|
361
|
-
export declare type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
|
|
362
|
-
|
|
363
|
-
export { }
|
|
1
|
+
/**
|
|
2
|
+
* Make a map and return a function for checking if a key
|
|
3
|
+
* is in that map.
|
|
4
|
+
* IMPORTANT: all calls of this function must be prefixed with
|
|
5
|
+
* \/\*#\_\_PURE\_\_\*\/
|
|
6
|
+
* So that rollup can tree-shake them if necessary.
|
|
7
|
+
*/
|
|
8
|
+
declare function makeMap(str: string, expectsLowerCase?: boolean): (key: string) => boolean;
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Patch flags are optimization hints generated by the compiler.
|
|
12
|
+
* when a block with dynamicChildren is encountered during diff, the algorithm
|
|
13
|
+
* enters "optimized mode". In this mode, we know that the vdom is produced by
|
|
14
|
+
* a render function generated by the compiler, so the algorithm only needs to
|
|
15
|
+
* handle updates explicitly marked by these patch flags.
|
|
16
|
+
*
|
|
17
|
+
* Patch flags can be combined using the | bitwise operator and can be checked
|
|
18
|
+
* using the & operator, e.g.
|
|
19
|
+
*
|
|
20
|
+
* ```js
|
|
21
|
+
* const flag = TEXT | CLASS
|
|
22
|
+
* if (flag & TEXT) { ... }
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* Check the `patchElement` function in '../../runtime-core/src/renderer.ts' to see how the
|
|
26
|
+
* flags are handled during diff.
|
|
27
|
+
*/
|
|
28
|
+
declare const enum PatchFlags {
|
|
29
|
+
/**
|
|
30
|
+
* Indicates an element with dynamic textContent (children fast path)
|
|
31
|
+
*/
|
|
32
|
+
TEXT = 1,
|
|
33
|
+
/**
|
|
34
|
+
* Indicates an element with dynamic class binding.
|
|
35
|
+
*/
|
|
36
|
+
CLASS = 2,
|
|
37
|
+
/**
|
|
38
|
+
* Indicates an element with dynamic style
|
|
39
|
+
* The compiler pre-compiles static string styles into static objects
|
|
40
|
+
* + detects and hoists inline static objects
|
|
41
|
+
* e.g. `style="color: red"` and `:style="{ color: 'red' }"` both get hoisted
|
|
42
|
+
* as:
|
|
43
|
+
* ```js
|
|
44
|
+
* const style = { color: 'red' }
|
|
45
|
+
* render() { return e('div', { style }) }
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
STYLE = 4,
|
|
49
|
+
/**
|
|
50
|
+
* Indicates an element that has non-class/style dynamic props.
|
|
51
|
+
* Can also be on a component that has any dynamic props (includes
|
|
52
|
+
* class/style). when this flag is present, the vnode also has a dynamicProps
|
|
53
|
+
* array that contains the keys of the props that may change so the runtime
|
|
54
|
+
* can diff them faster (without having to worry about removed props)
|
|
55
|
+
*/
|
|
56
|
+
PROPS = 8,
|
|
57
|
+
/**
|
|
58
|
+
* Indicates an element with props with dynamic keys. When keys change, a full
|
|
59
|
+
* diff is always needed to remove the old key. This flag is mutually
|
|
60
|
+
* exclusive with CLASS, STYLE and PROPS.
|
|
61
|
+
*/
|
|
62
|
+
FULL_PROPS = 16,
|
|
63
|
+
/**
|
|
64
|
+
* Indicates an element with event listeners (which need to be attached
|
|
65
|
+
* during hydration)
|
|
66
|
+
*/
|
|
67
|
+
HYDRATE_EVENTS = 32,
|
|
68
|
+
/**
|
|
69
|
+
* Indicates a fragment whose children order doesn't change.
|
|
70
|
+
*/
|
|
71
|
+
STABLE_FRAGMENT = 64,
|
|
72
|
+
/**
|
|
73
|
+
* Indicates a fragment with keyed or partially keyed children
|
|
74
|
+
*/
|
|
75
|
+
KEYED_FRAGMENT = 128,
|
|
76
|
+
/**
|
|
77
|
+
* Indicates a fragment with unkeyed children.
|
|
78
|
+
*/
|
|
79
|
+
UNKEYED_FRAGMENT = 256,
|
|
80
|
+
/**
|
|
81
|
+
* Indicates an element that only needs non-props patching, e.g. ref or
|
|
82
|
+
* directives (onVnodeXXX hooks). since every patched vnode checks for refs
|
|
83
|
+
* and onVnodeXXX hooks, it simply marks the vnode so that a parent block
|
|
84
|
+
* will track it.
|
|
85
|
+
*/
|
|
86
|
+
NEED_PATCH = 512,
|
|
87
|
+
/**
|
|
88
|
+
* Indicates a component with dynamic slots (e.g. slot that references a v-for
|
|
89
|
+
* iterated value, or dynamic slot names).
|
|
90
|
+
* Components with this flag are always force updated.
|
|
91
|
+
*/
|
|
92
|
+
DYNAMIC_SLOTS = 1024,
|
|
93
|
+
/**
|
|
94
|
+
* Indicates a fragment that was created only because the user has placed
|
|
95
|
+
* comments at the root level of a template. This is a dev-only flag since
|
|
96
|
+
* comments are stripped in production.
|
|
97
|
+
*/
|
|
98
|
+
DEV_ROOT_FRAGMENT = 2048,
|
|
99
|
+
/**
|
|
100
|
+
* SPECIAL FLAGS -------------------------------------------------------------
|
|
101
|
+
* Special flags are negative integers. They are never matched against using
|
|
102
|
+
* bitwise operators (bitwise matching should only happen in branches where
|
|
103
|
+
* patchFlag > 0), and are mutually exclusive. When checking for a special
|
|
104
|
+
* flag, simply check patchFlag === FLAG.
|
|
105
|
+
*/
|
|
106
|
+
/**
|
|
107
|
+
* Indicates a hoisted static vnode. This is a hint for hydration to skip
|
|
108
|
+
* the entire sub tree since static content never needs to be updated.
|
|
109
|
+
*/
|
|
110
|
+
HOISTED = -1,
|
|
111
|
+
/**
|
|
112
|
+
* A special flag that indicates that the diffing algorithm should bail out
|
|
113
|
+
* of optimized mode. For example, on block fragments created by renderSlot()
|
|
114
|
+
* when encountering non-compiler generated slots (i.e. manually written
|
|
115
|
+
* render functions, which should always be fully diffed)
|
|
116
|
+
* OR manually cloneVNodes
|
|
117
|
+
*/
|
|
118
|
+
BAIL = -2
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* dev only flag -> name mapping
|
|
122
|
+
*/
|
|
123
|
+
declare const PatchFlagNames: {
|
|
124
|
+
[x: number]: string;
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
declare const enum ShapeFlags {
|
|
128
|
+
ELEMENT = 1,
|
|
129
|
+
FUNCTIONAL_COMPONENT = 2,
|
|
130
|
+
STATEFUL_COMPONENT = 4,
|
|
131
|
+
TEXT_CHILDREN = 8,
|
|
132
|
+
ARRAY_CHILDREN = 16,
|
|
133
|
+
SLOTS_CHILDREN = 32,
|
|
134
|
+
TELEPORT = 64,
|
|
135
|
+
SUSPENSE = 128,
|
|
136
|
+
COMPONENT_SHOULD_KEEP_ALIVE = 256,
|
|
137
|
+
COMPONENT_KEPT_ALIVE = 512,
|
|
138
|
+
COMPONENT = 6
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
declare const enum SlotFlags {
|
|
142
|
+
/**
|
|
143
|
+
* Stable slots that only reference slot props or context state. The slot
|
|
144
|
+
* can fully capture its own dependencies so when passed down the parent won't
|
|
145
|
+
* need to force the child to update.
|
|
146
|
+
*/
|
|
147
|
+
STABLE = 1,
|
|
148
|
+
/**
|
|
149
|
+
* Slots that reference scope variables (v-for or an outer slot prop), or
|
|
150
|
+
* has conditional structure (v-if, v-for). The parent will need to force
|
|
151
|
+
* the child to update because the slot does not fully capture its dependencies.
|
|
152
|
+
*/
|
|
153
|
+
DYNAMIC = 2,
|
|
154
|
+
/**
|
|
155
|
+
* `<slot/>` being forwarded into a child component. Whether the parent needs
|
|
156
|
+
* to update the child is dependent on what kind of slots the parent itself
|
|
157
|
+
* received. This has to be refined at runtime, when the child's vnode
|
|
158
|
+
* is being created (in `normalizeChildren`)
|
|
159
|
+
*/
|
|
160
|
+
FORWARDED = 3
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* Dev only
|
|
164
|
+
*/
|
|
165
|
+
declare const slotFlagsText: {
|
|
166
|
+
1: string;
|
|
167
|
+
2: string;
|
|
168
|
+
3: string;
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
declare const isGloballyWhitelisted: (key: string) => boolean;
|
|
172
|
+
|
|
173
|
+
declare function generateCodeFrame(source: string, start?: number, end?: number): string;
|
|
174
|
+
|
|
175
|
+
export type NormalizedStyle = Record<string, string | number>;
|
|
176
|
+
declare function normalizeStyle(value: unknown): NormalizedStyle | string | undefined;
|
|
177
|
+
declare function parseStringStyle(cssText: string): NormalizedStyle;
|
|
178
|
+
declare function stringifyStyle(styles: NormalizedStyle | string | undefined): string;
|
|
179
|
+
declare function normalizeClass(value: unknown): string;
|
|
180
|
+
declare function normalizeProps(props: Record<string, any> | null): Record<string, any> | null;
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Compiler only.
|
|
184
|
+
* Do NOT use in runtime code paths unless behind `__DEV__` flag.
|
|
185
|
+
*/
|
|
186
|
+
declare const isHTMLTag: (key: string) => boolean;
|
|
187
|
+
/**
|
|
188
|
+
* Compiler only.
|
|
189
|
+
* Do NOT use in runtime code paths unless behind `__DEV__` flag.
|
|
190
|
+
*/
|
|
191
|
+
declare const isSVGTag: (key: string) => boolean;
|
|
192
|
+
/**
|
|
193
|
+
* Compiler only.
|
|
194
|
+
* Do NOT use in runtime code paths unless behind `__DEV__` flag.
|
|
195
|
+
*/
|
|
196
|
+
declare const isVoidTag: (key: string) => boolean;
|
|
197
|
+
|
|
198
|
+
declare const isSpecialBooleanAttr: (key: string) => boolean;
|
|
199
|
+
/**
|
|
200
|
+
* The full list is needed during SSR to produce the correct initial markup.
|
|
201
|
+
*/
|
|
202
|
+
declare const isBooleanAttr: (key: string) => boolean;
|
|
203
|
+
/**
|
|
204
|
+
* Boolean attributes should be included if the value is truthy or ''.
|
|
205
|
+
* e.g. `<select multiple>` compiles to `{ multiple: '' }`
|
|
206
|
+
*/
|
|
207
|
+
declare function includeBooleanAttr(value: unknown): boolean;
|
|
208
|
+
declare function isSSRSafeAttrName(name: string): boolean;
|
|
209
|
+
declare const propsToAttrMap: Record<string, string | undefined>;
|
|
210
|
+
/**
|
|
211
|
+
* Known attributes, this is used for stringification of runtime static nodes
|
|
212
|
+
* so that we don't stringify bindings that cannot be set from HTML.
|
|
213
|
+
* Don't also forget to allow `data-*` and `aria-*`!
|
|
214
|
+
* Generated from https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes
|
|
215
|
+
*/
|
|
216
|
+
declare const isKnownHtmlAttr: (key: string) => boolean;
|
|
217
|
+
/**
|
|
218
|
+
* Generated from https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute
|
|
219
|
+
*/
|
|
220
|
+
declare const isKnownSvgAttr: (key: string) => boolean;
|
|
221
|
+
|
|
222
|
+
declare function escapeHtml(string: unknown): string;
|
|
223
|
+
declare function escapeHtmlComment(src: string): string;
|
|
224
|
+
|
|
225
|
+
declare function looseEqual(a: any, b: any): boolean;
|
|
226
|
+
declare function looseIndexOf(arr: any[], val: any): number;
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* For converting {{ interpolation }} values to displayed strings.
|
|
230
|
+
* @private
|
|
231
|
+
*/
|
|
232
|
+
declare const toDisplayString: (val: unknown) => string;
|
|
233
|
+
|
|
234
|
+
export type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
|
|
235
|
+
export type LooseRequired<T> = {
|
|
236
|
+
[P in keyof (T & Required<T>)]: T[P];
|
|
237
|
+
};
|
|
238
|
+
export type IfAny<T, Y, N> = 0 extends 1 & T ? Y : N;
|
|
239
|
+
|
|
240
|
+
declare const EMPTY_OBJ: {
|
|
241
|
+
readonly [key: string]: any;
|
|
242
|
+
};
|
|
243
|
+
declare const EMPTY_ARR: readonly never[];
|
|
244
|
+
declare const NOOP: () => void;
|
|
245
|
+
/**
|
|
246
|
+
* Always return false.
|
|
247
|
+
*/
|
|
248
|
+
declare const NO: () => boolean;
|
|
249
|
+
declare const isOn: (key: string) => boolean;
|
|
250
|
+
declare const isModelListener: (key: string) => boolean;
|
|
251
|
+
declare const extend: {
|
|
252
|
+
<T extends {}, U>(target: T, source: U): T & U;
|
|
253
|
+
<T_1 extends {}, U_1, V>(target: T_1, source1: U_1, source2: V): T_1 & U_1 & V;
|
|
254
|
+
<T_2 extends {}, U_2, V_1, W>(target: T_2, source1: U_2, source2: V_1, source3: W): T_2 & U_2 & V_1 & W;
|
|
255
|
+
(target: object, ...sources: any[]): any;
|
|
256
|
+
};
|
|
257
|
+
declare const remove: <T>(arr: T[], el: T) => void;
|
|
258
|
+
declare const hasOwn: (val: object, key: string | symbol) => key is never;
|
|
259
|
+
declare const isArray: (arg: any) => arg is any[];
|
|
260
|
+
declare const isMap: (val: unknown) => val is Map<any, any>;
|
|
261
|
+
declare const isSet: (val: unknown) => val is Set<any>;
|
|
262
|
+
declare const isDate: (val: unknown) => val is Date;
|
|
263
|
+
declare const isRegExp: (val: unknown) => val is RegExp;
|
|
264
|
+
declare const isFunction: (val: unknown) => val is Function;
|
|
265
|
+
declare const isString: (val: unknown) => val is string;
|
|
266
|
+
declare const isSymbol: (val: unknown) => val is symbol;
|
|
267
|
+
declare const isObject: (val: unknown) => val is Record<any, any>;
|
|
268
|
+
declare const isPromise: <T = any>(val: unknown) => val is Promise<T>;
|
|
269
|
+
declare const objectToString: () => string;
|
|
270
|
+
declare const toTypeString: (value: unknown) => string;
|
|
271
|
+
declare const toRawType: (value: unknown) => string;
|
|
272
|
+
declare const isPlainObject: (val: unknown) => val is object;
|
|
273
|
+
declare const isIntegerKey: (key: unknown) => boolean;
|
|
274
|
+
declare const isReservedProp: (key: string) => boolean;
|
|
275
|
+
declare const isBuiltInDirective: (key: string) => boolean;
|
|
276
|
+
/**
|
|
277
|
+
* @private
|
|
278
|
+
*/
|
|
279
|
+
declare const camelize: (str: string) => string;
|
|
280
|
+
/**
|
|
281
|
+
* @private
|
|
282
|
+
*/
|
|
283
|
+
declare const hyphenate: (str: string) => string;
|
|
284
|
+
/**
|
|
285
|
+
* @private
|
|
286
|
+
*/
|
|
287
|
+
declare const capitalize: (str: string) => string;
|
|
288
|
+
/**
|
|
289
|
+
* @private
|
|
290
|
+
*/
|
|
291
|
+
declare const toHandlerKey: (str: string) => string;
|
|
292
|
+
declare const hasChanged: (value: any, oldValue: any) => boolean;
|
|
293
|
+
declare const invokeArrayFns: (fns: Function[], arg?: any) => void;
|
|
294
|
+
declare const def: (obj: object, key: string | symbol, value: any) => void;
|
|
295
|
+
/**
|
|
296
|
+
* "123-foo" will be parsed to 123
|
|
297
|
+
* This is used for the .number modifier in v-model
|
|
298
|
+
*/
|
|
299
|
+
declare const looseToNumber: (val: any) => any;
|
|
300
|
+
/**
|
|
301
|
+
* Only conerces number-like strings
|
|
302
|
+
* "123-foo" will be returned as-is
|
|
303
|
+
*/
|
|
304
|
+
declare const toNumber: (val: any) => any;
|
|
305
|
+
declare const getGlobalThis: () => any;
|
|
306
|
+
declare function genPropsAccessExp(name: string): string;
|
|
307
|
+
|
|
308
|
+
export { EMPTY_ARR, EMPTY_OBJ, NO, NOOP, PatchFlagNames, PatchFlags, ShapeFlags, SlotFlags, camelize, capitalize, def, escapeHtml, escapeHtmlComment, extend, genPropsAccessExp, generateCodeFrame, getGlobalThis, hasChanged, hasOwn, hyphenate, includeBooleanAttr, invokeArrayFns, isArray, isBooleanAttr, isBuiltInDirective, isDate, isFunction, isGloballyWhitelisted, isHTMLTag, isIntegerKey, isKnownHtmlAttr, isKnownSvgAttr, isMap, isModelListener, isObject, isOn, isPlainObject, isPromise, isRegExp, isReservedProp, isSSRSafeAttrName, isSVGTag, isSet, isSpecialBooleanAttr, isString, isSymbol, isVoidTag, looseEqual, looseIndexOf, looseToNumber, makeMap, normalizeClass, normalizeProps, normalizeStyle, objectToString, parseStringStyle, propsToAttrMap, remove, slotFlagsText, stringifyStyle, toDisplayString, toHandlerKey, toNumber, toRawType, toTypeString };
|