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

Function isTemplateInsertMode

src/engine/TemplateInsertEngine.ts:49–53  ·  view source on GitHub ↗
(
	value: unknown,
)

Source from the content-addressed store, hash-verified

47export type TemplateInsertModeId = (typeof templateInsertModes)[number]["id"];
48
49export function isTemplateInsertMode(
50 value: unknown,
51): value is TemplateInsertModeId {
52 return templateInsertModes.some((mode) => mode.id === value);
53}
54
55/**
56 * Splits formatted template content into its YAML frontmatter (without

Callers 2

GetApiMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected