MCPcopy Create free account
hub / github.com/chhoumann/quickadd / hasCommandType

Function hasCommandType

src/engine/MacroChoiceEngine.ts:72–77  ·  view source on GitHub ↗
(
	command: unknown,
	type: CommandType
)

Source from the content-addressed store, hash-verified

70) => Promise<unknown>;
71
72function hasCommandType(
73 command: unknown,
74 type: CommandType
75): command is ICommand {
76 return isRecord(command) && command.type === type;
77}
78
79function isObsidianCommand(command: unknown): command is IObsidianCommand {
80 return hasCommandType(command, CommandType.Obsidian);

Callers 9

isObsidianCommandFunction · 0.85
isUserScriptCommandFunction · 0.85
isChoiceCommandFunction · 0.85
isWaitCommandFunction · 0.85
isNestedChoiceCommandFunction · 0.85
isEditorCommandFunction · 0.85
isAIAssistantCommandFunction · 0.85
isOpenFileCommandFunction · 0.85
isConditionalCommandFunction · 0.85

Calls 1

isRecordFunction · 0.70

Tested by

no test coverage detected