Invokes commands with argument and result types intact.
Invokes a command through its contract. This provides compile-time argument and result types; runtime validation still occurs only when the registered contract declares an args validator.
args
const result = await commands.execute(RefreshProjects, { force: true }); Copy
const result = await commands.execute(RefreshProjects, { force: true });
Invokes commands with argument and result types intact.