Skip to content

Profectus / game/boards/board / unwrapNodeRef

Function: unwrapNodeRef() ​

unwrapNodeRef<T, R, S>(property, node, ...args): R

Gets the value of a property for a specified node.

Type Parameters ​

• T

• R

• S extends unknown[]

Parameters ​

property ​

NodeMaybeRefOrGetter<T, R, S>

The property to find the value of

node ​

T

The node to get the property of

args ​

...S

Returns ​

R

Defined in ​

profectus/src/game/boards/board.tsx:32