mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-04 02:58:23 +09:00
20 lines
672 B
TypeScript
20 lines
672 B
TypeScript
import type { WsComponentMeta } from "@webstudio-is/sdk";
|
|
|
|
type FrameworkTemplateEntry = {
|
|
file: string;
|
|
template: string;
|
|
};
|
|
|
|
export type Framework = {
|
|
// instance.component: WsComponentMeta
|
|
metas: Record<string, WsComponentMeta>;
|
|
// instance.component: "importSource:importSpecifier"
|
|
components: Record<string, string>;
|
|
// instance.tag: "importSource:importSpecifier"
|
|
tags: Record<string, string>;
|
|
html: (params: { pagePath: string }) => FrameworkTemplateEntry[];
|
|
xml: (params: { pagePath: string }) => FrameworkTemplateEntry[];
|
|
text: (params: { pagePath: string }) => FrameworkTemplateEntry[];
|
|
defaultSitemap: () => FrameworkTemplateEntry[];
|
|
};
|