@arcmantle/library
Preparing search index...
node-tree/node-tree
fromList
Function fromList
fromList
<
TObj
extends
Rec
,
TIdProp
extends
string
|
number
|
symbol
,
TParentProp
extends
string
|
number
|
symbol
,
TChildProp
extends
string
,
>
(
list
:
TObj
[]
,
idProp
:
TIdProp
,
parentProp
:
TParentProp
,
childProp
:
TChildProp
,
)
:
RootNode
<
Item
<
TObj
,
TIdProp
,
TParentProp
,
TChildProp
>
,
TChildProp
>
Type Parameters
TObj
extends
Rec
TIdProp
extends
string
|
number
|
symbol
TParentProp
extends
string
|
number
|
symbol
TChildProp
extends
string
Parameters
list
:
TObj
[]
idProp
:
TIdProp
parentProp
:
TParentProp
childProp
:
TChildProp
Returns
RootNode
<
Item
<
TObj
,
TIdProp
,
TParentProp
,
TChildProp
>
,
TChildProp
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@arcmantle/library
Loading...