@vue/shared-canary
Advanced tools
Comparing version 3.20240513.0 to 3.20240513.1-minor.0
/** | ||
* @vue/shared-canary v3.20240513.0 | ||
* @vue/shared-canary v3.20240513.1-minor.0 | ||
* (c) 2018-present Yuxi (Evan) You and Vue contributors | ||
@@ -280,4 +280,4 @@ * @license MIT | ||
const value = styles[key]; | ||
const normalizedKey = key.startsWith(`--`) ? key : hyphenate(key); | ||
if (isString(value) || typeof value === "number") { | ||
const normalizedKey = key.startsWith(`--`) ? key : hyphenate(key); | ||
ret += `${normalizedKey}:${value};`; | ||
@@ -284,0 +284,0 @@ } |
/** | ||
* @vue/shared-canary v3.20240513.0 | ||
* @vue/shared-canary v3.20240513.1-minor.0 | ||
* (c) 2018-present Yuxi (Evan) You and Vue contributors | ||
@@ -280,4 +280,4 @@ * @license MIT | ||
const value = styles[key]; | ||
const normalizedKey = key.startsWith(`--`) ? key : hyphenate(key); | ||
if (isString(value) || typeof value === "number") { | ||
const normalizedKey = key.startsWith(`--`) ? key : hyphenate(key); | ||
ret += `${normalizedKey}:${value};`; | ||
@@ -284,0 +284,0 @@ } |
@@ -324,2 +324,10 @@ /** | ||
} ? F extends (value: infer V, ...args: infer _) => any ? Awaited<V> : never : T; | ||
/** | ||
* Utility for extracting the parameters from a function overload (for typed emits) | ||
* https://github.com/microsoft/TypeScript/issues/32164#issuecomment-1146737709 | ||
*/ | ||
export type OverloadParameters<T extends (...args: any[]) => any> = Parameters<OverloadUnion<T>>; | ||
type OverloadProps<TOverload> = Pick<TOverload, keyof TOverload>; | ||
type OverloadUnionRecursive<TOverload, TPartialOverload = unknown> = TOverload extends (...args: infer TArgs) => infer TReturn ? TPartialOverload extends TOverload ? never : OverloadUnionRecursive<TPartialOverload & TOverload, TPartialOverload & ((...args: TArgs) => TReturn) & OverloadProps<TOverload>> | ((...args: TArgs) => TReturn) : never; | ||
type OverloadUnion<TOverload extends (...args: any[]) => any> = Exclude<OverloadUnionRecursive<(() => never) & TOverload>, TOverload extends () => never ? never : () => never>; | ||
/** | ||
* @vue/shared-canary v3.20240513.0 | ||
* @vue/shared-canary v3.20240513.1-minor.0 | ||
* (c) 2018-present Yuxi (Evan) You and Vue contributors | ||
@@ -276,4 +276,4 @@ * @license MIT | ||
const value = styles[key]; | ||
const normalizedKey = key.startsWith(`--`) ? key : hyphenate(key); | ||
if (isString(value) || typeof value === "number") { | ||
const normalizedKey = key.startsWith(`--`) ? key : hyphenate(key); | ||
ret += `${normalizedKey}:${value};`; | ||
@@ -280,0 +280,0 @@ } |
{ | ||
"name": "@vue/shared-canary", | ||
"version": "3.20240513.0", | ||
"version": "3.20240513.1-minor.0", | ||
"description": "internal utils shared across @vue packages", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
81561
1972
1