Profectus / game/boards/board / NodeMaybeRefOrGetter
Type Alias: NodeMaybeRefOrGetter<T, R, S> ​
NodeMaybeRefOrGetter<
T,R,S>:MaybeRefOrGetter<R> | (node, ...args) =>R
A type representing a MaybeRefOrGetter value for a node on the board. Used for node types to return different values based on the given node and the state of the board.
Type Parameters ​
• T
• R
• S extends unknown[] = []