Props
Set Props
Set on client create
You can set props using the props property on the JellyCommands client.
import { JellyCommands } from 'jellycommands';
const client = new JellyCommands({ props: { propOne: 'something', },});Set/Modify dynamically
You can modify props anywhere you have access to them, the primary place would be the off the client.
const client = ...
client.props.propOne = 'something';Type Saftey
You can use the Props interface from JellyCommand’s ambient types. If you use create-jellycommands this will already be setup in src/app.d.ts
/// <reference types="jellycommands/ambient" />
// See https://jellycommands.dev/guide/propsinterface Props { propOne: string;}