UNPKG
@kcirtaptrick/framer-motion
Version:
latest (6.2.9)
6.2.10
6.2.9
A simple and powerful React animation library
github.com/framer/motion
framer/motion
@kcirtaptrick/framer-motion
/
types
/
render
/
dom
/
value-types
/
get-as-type.d.ts
6 lines
(5 loc)
•
218 B
TypeScript
View Raw
1
2
3
4
5
6
import
{
ValueType
}
from
"style-value-types"
;
/** * Provided a value and a ValueType, returns the value as that value type. */
export
declare
const
getValueAsType
:
(
value
:
any
,
type
?:
ValueType
|
undefined
) =>
any
;