@openhps/core
Preparing search index...
UnitFunctionDefinition
Type Alias UnitFunctionDefinition<In, Out>
type
UnitFunctionDefinition
<
In
,
Out
>
=
{
fromUnit
:
(
x
:
Out
)
=>
In
;
inputType
?:
new
(
...
args
:
any
[]
)
=>
UnitValueType
;
outputType
?:
new
(
...
args
:
any
[]
)
=>
UnitValueType
;
toUnit
:
(
x
:
In
)
=>
Out
;
unit
:
string
;
}
Type Parameters
In
Out
Index
Properties
from
Unit
input
Type?
output
Type?
to
Unit
unit
Properties
from
Unit
fromUnit
:
(
x
:
Out
)
=>
In
Optional
input
Type
inputType
?:
new
(
...
args
:
any
[]
)
=>
UnitValueType
Optional
output
Type
outputType
?:
new
(
...
args
:
any
[]
)
=>
UnitValueType
to
Unit
toUnit
:
(
x
:
In
)
=>
Out
unit
unit
:
string
Target unit
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
from
Unit
input
Type
output
Type
to
Unit
unit
@openhps/core
Loading...
Target unit