File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -225,13 +225,9 @@ export class PropertyGroup {
225
225
}
226
226
227
227
export type Value =
228
+ | NumericValue
228
229
| string
229
- | number
230
230
| boolean
231
- | Vector
232
- | Vector2D
233
- | Vector3D
234
- | Color
235
231
| PathValue ;
236
232
237
233
export class Property < PropertyValueType extends Value > {
@@ -1488,7 +1484,7 @@ export class Layer {
1488
1484
* @param vec1 The vector to multiply
1489
1485
* @param amount The amount to multiply by
1490
1486
*/
1491
- mul < VectorType extends number | Vector | Vector2D | Vector3D > (
1487
+ mul < VectorType extends NumericValue > (
1492
1488
vec1 : VectorType ,
1493
1489
amount : number
1494
1490
) : VectorType {
@@ -1499,7 +1495,7 @@ export class Layer {
1499
1495
* @param vec1 The vector to divide
1500
1496
* @param amount The amount to divide by
1501
1497
*/
1502
- div < VectorType extends number | Vector | Vector2D | Vector3D > (
1498
+ div < VectorType extends NumericValue > (
1503
1499
vec1 : VectorType ,
1504
1500
amount : number
1505
1501
) : VectorType {
@@ -1511,7 +1507,7 @@ export class Layer {
1511
1507
* @param limit1 Lower limit
1512
1508
* @param limit2 Upper limit
1513
1509
*/
1514
- clamp < T extends number | number [ ] > (
1510
+ clamp < T extends NumericValue > (
1515
1511
value : T ,
1516
1512
limit1 : number ,
1517
1513
limit2 : number
You can’t perform that action at this time.
0 commit comments