MCPcopy Create free account
hub / github.com/yargs/yargs / isCommandBuilderDefinition

Function isCommandBuilderDefinition

lib/command.ts:815–823  ·  view source on GitHub ↗
(
  builder?: CommandBuilder | CommandBuilderDefinition
)

Source from the content-addressed store, hash-verified

813}
814
815export function isCommandBuilderDefinition(
816 builder?: CommandBuilder | CommandBuilderDefinition
817): builder is CommandBuilderDefinition {
818 return (
819 typeof builder === 'object' &&
820 !!(builder as CommandBuilderDefinition).builder &&
821 typeof (builder as CommandBuilderDefinition).handler === 'function'
822 );
823}
824
825export interface CommandHandlerCallback {
826 (argv: Arguments): any;

Callers 2

addHandlerMethod · 0.85
runDefaultBuilderOnMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…