Union type for props that can be either direct or store-derived. Combines both direct and reactive prop types.
The result type.
StoreMap type.
const myStore = createStore({ value: "Hello" });const utilityProps: UtilityProps<string, typeof myStore> = [{ myStore }, ({ myStore }) => myStore.value];const utilityProps: UtilityProps<string> = ["Hello"]; Copy
const myStore = createStore({ value: "Hello" });const utilityProps: UtilityProps<string, typeof myStore> = [{ myStore }, ({ myStore }) => myStore.value];const utilityProps: UtilityProps<string> = ["Hello"];
Union type for props that can be either direct or store-derived. Combines both direct and reactive prop types.