@stylexjs/shared
Advanced tools
Comparing version 0.6.0 to 0.6.1
@@ -52,4 +52,4 @@ /** | ||
) => value is CSSType<string | number>; | ||
type AnguleValue = string; | ||
export declare class Angle<T extends AnguleValue> | ||
type AngleValue = string; | ||
export declare class Angle<T extends AngleValue> | ||
extends BaseCSSType | ||
@@ -61,7 +61,9 @@ implements CSSType<T> | ||
static readonly syntax: CSSSyntaxType; | ||
static create<T extends AnguleValue = AnguleValue>( | ||
static create<T extends AngleValue = AngleValue>( | ||
value: ValueWithDefault, | ||
): Angle<T>; | ||
} | ||
export declare const angle: any; | ||
export declare const angle: <T extends AngleValue = AngleValue>( | ||
value: ValueWithDefault, | ||
) => Angle<T>; | ||
type ColorValue = string; | ||
@@ -78,3 +80,5 @@ export declare class Color<T extends ColorValue> | ||
} | ||
export declare const color: any; | ||
export declare const color: <T extends ColorValue = ColorValue>( | ||
value: ValueWithDefault, | ||
) => Color<T>; | ||
type URLValue = string; | ||
@@ -89,3 +93,5 @@ export declare class Url<T extends URLValue> | ||
} | ||
export declare const url: any; | ||
export declare const url: <T extends URLValue = URLValue>( | ||
value: ValueWithDefault, | ||
) => Url<T>; | ||
type ImageValue = string; | ||
@@ -103,3 +109,5 @@ export declare class Image<T extends ImageValue> | ||
} | ||
export declare const image: any; | ||
export declare const image: <T extends ImageValue = ImageValue>( | ||
value: ValueWithDefault, | ||
) => Image<T>; | ||
type IntegerValue = number; | ||
@@ -114,3 +122,5 @@ export declare class Integer<T extends IntegerValue> | ||
} | ||
export declare const integer: any; | ||
export declare const integer: <T extends IntegerValue = IntegerValue>( | ||
value: T, | ||
) => Integer<T>; | ||
type LengthPercentageValue = string; | ||
@@ -130,3 +140,7 @@ export declare class LengthPercentage<_T extends LengthPercentageValue> | ||
} | ||
export declare const lengthPercentage: any; | ||
export declare const lengthPercentage: < | ||
_T extends LengthPercentageValue | number, | ||
>( | ||
value: ValueWithDefault, | ||
) => LengthPercentage<string>; | ||
type LengthValue = number | string; | ||
@@ -143,3 +157,5 @@ export declare class Length<_T extends LengthValue> | ||
} | ||
export declare const length: any; | ||
export declare const length: <T extends LengthValue = LengthValue>( | ||
value: NestedWithNumbers, | ||
) => Length<T>; | ||
type PercentageValue = string | number; | ||
@@ -156,3 +172,5 @@ export declare class Percentage<_T extends PercentageValue> | ||
} | ||
export declare const percentage: any; | ||
export declare const percentage: <T extends PercentageValue = PercentageValue>( | ||
value: NestedWithNumbers, | ||
) => Percentage<T>; | ||
type NumberValue = number; | ||
@@ -169,3 +187,5 @@ export declare class Num<T extends NumberValue> | ||
} | ||
export declare const number: any; | ||
export declare const number: <T extends NumberValue = NumberValue>( | ||
value: NestedWithNumbers, | ||
) => Num<T>; | ||
type ResolutionValue = string | 0; | ||
@@ -182,3 +202,5 @@ export declare class Resolution<T extends ResolutionValue> | ||
} | ||
export declare const resolution: any; | ||
export declare const resolution: <T extends ResolutionValue = ResolutionValue>( | ||
value: ValueWithDefault, | ||
) => Resolution<T>; | ||
type TimeValue = string | 0; | ||
@@ -195,3 +217,5 @@ export declare class Time<T extends TimeValue> | ||
} | ||
export declare const time: any; | ||
export declare const time: <T extends TimeValue = TimeValue>( | ||
value: ValueWithDefault, | ||
) => Time<T>; | ||
type TransformFunctionValue = string; | ||
@@ -208,3 +232,7 @@ export declare class TransformFunction<T extends TransformFunctionValue> | ||
} | ||
export declare const transformFunction: any; | ||
export declare const transformFunction: < | ||
T extends TransformFunctionValue = TransformFunctionValue, | ||
>( | ||
value: ValueWithDefault, | ||
) => TransformFunction<T>; | ||
type TransformListValue = string; | ||
@@ -221,2 +249,6 @@ export declare class TransformList<T extends TransformListValue> | ||
} | ||
export declare const transformList: any; | ||
export declare const transformList: < | ||
T extends TransformListValue = TransformListValue, | ||
>( | ||
value: ValueWithDefault, | ||
) => TransformList<T>; |
{ | ||
"name": "@stylexjs/shared", | ||
"version": "0.6.0", | ||
"version": "0.6.1", | ||
"main": "lib/index.js", | ||
@@ -16,3 +16,3 @@ "repository": "https://www.github.com/facebook/stylex", | ||
"devDependencies": { | ||
"@stylexjs/scripts": "0.6.0" | ||
"@stylexjs/scripts": "0.6.1" | ||
}, | ||
@@ -19,0 +19,0 @@ "jest": { |
Sorry, the diff of this file is not supported yet
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
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
865689
26126