( value: unknown, )
| 47 | export type TemplateInsertModeId = (typeof templateInsertModes)[number]["id"]; |
| 48 | |
| 49 | export 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 |
no outgoing calls
no test coverage detected