@vue/shared 3.2.26 → 3.2.27

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 (2) hide show
  1. package/dist/shared.d.ts +8 -0
  2. package/package.json +1 -1
package/dist/shared.d.ts CHANGED
@@ -40,6 +40,8 @@ export declare const hasOwn: (val: object, key: string | symbol) => key is never
40
40
  */
41
41
  export declare const hyphenate: (str: string) => string;
42
42
 
43
+ export declare type IfAny<T, Y, N> = 0 extends (1 & T) ? Y : N;
44
+
43
45
  /**
44
46
  * Boolean attributes should be included if the value is truthy or ''.
45
47
  * e.g. `<select multiple>` compiles to `{ multiple: '' }`
@@ -115,6 +117,10 @@ export declare function looseEqual(a: any, b: any): boolean;
115
117
 
116
118
  export declare function looseIndexOf(arr: any[], val: any): number;
117
119
 
120
+ export declare type LooseRequired<T> = {
121
+ [P in string & keyof T]: T[P];
122
+ };
123
+
118
124
  /**
119
125
  * Make a map and return a function for checking if a key
120
126
  * is in that map.
@@ -329,4 +335,6 @@ export declare const toRawType: (value: unknown) => string;
329
335
 
330
336
  export declare const toTypeString: (value: unknown) => string;
331
337
 
338
+ export declare type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
339
+
332
340
  export { }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue/shared",
3
- "version": "3.2.26",
3
+ "version": "3.2.27",
4
4
  "description": "internal utils shared across @vue packages",
5
5
  "main": "index.js",
6
6
  "module": "dist/shared.esm-bundler.js",