1
0
silverbullet/plugs/template/types.ts

11 lines
349 B
TypeScript
Raw Normal View History

import { ObjectValue } from "$sb/types.ts";
export type TemplateFrontmatter = {
trigger?: string; // slash command name
scope?: string;
// Frontmatter can be encoded as an object (in which case we'll serialize it) or as a string
frontmatter?: Record<string, any> | string;
};
export type TemplateObject = ObjectValue<TemplateFrontmatter>;