@logixjs/core
Preparing search index...
StateTrait
from
Function from
from
<
S
extends
object
,
I
>
(
_schema
:
Schema
<
S
,
I
>
,
)
:
(
spec
:
StateTraitSpec
<
S
>
)
=>
StateTraitSpec
<
S
>
StateTrait.from:
Narrows available field paths based on the state Schema, adding type constraints to trait specs.
At runtime this returns the raw spec object; normalization is handled by internal layers.
Type Parameters
S
extends
object
I
Parameters
_schema
:
Schema
<
S
,
I
>
Returns
(
spec
:
StateTraitSpec
<
S
>
)
=>
StateTraitSpec
<
S
>
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
@logixjs/core
Loading...
StateTrait.from: