Forest.js Core Documentation - v1.2.3
    Preparing search index...

    Type Alias UtilityProps<R, S>

    UtilityProps: DirectProps<R> | [S, (values: StoreValues<S>) => R]

    Union type for props that can be either direct or store-derived. Combines both direct and reactive prop types.

    Type Parameters

    const myStore = createStore({ value: "Hello" });
    const utilityProps: UtilityProps<string, typeof myStore> = [{ myStore }, ({ myStore }) => myStore.value];
    const utilityProps: UtilityProps<string> = ["Hello"];