UNPKG
postcss-calc
Version:
latest (10.1.1)
10.1.1
10.1.0
10.0.2
10.0.1
10.0.0
9.0.1
9.0.0
8.2.4
8.2.3
8.2.2
8.2.1
8.2.0
8.1.0
8.0.0
7.0.5
7.0.4
7.0.3
7.0.2
7.0.1
7.0.0
6.0.2
6.0.1
6.0.0
5.3.1
5.3.0
5.2.1
5.2.0
5.1.0
5.0.0
4.1.0
4.0.1
4.0.0
3.0.0
2.1.0
2.0.1
2.0.0
1.0.0
PostCSS plugin to reduce calc()
github.com/postcss/postcss-calc
postcss/postcss-calc
postcss-calc
/
types
/
lib
/
convertUnit.d.ts
9 lines
(8 loc)
•
270 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
export
= convertUnit;
/** *
@param
{
number
}
value
*
@param
{
string
}
sourceUnit
*
@param
{
string
}
targetUnit
*
@param
{
number|false
}
precision
*/
declare
function
convertUnit
(
value
:
number
,
sourceUnit
:
string
,
targetUnit
:
string
,
precision
:
number
|
false
):
number
;