Declares a typed command contract.
Optional
const Refresh = defineCommandContract<readonly [force?: boolean], number>( { id: 'sample.refresh' }, { args: refreshArgsSchema }); Copy
const Refresh = defineCommandContract<readonly [force?: boolean], number>( { id: 'sample.refresh' }, { args: refreshArgsSchema });
Declares a typed command contract.