echoes/frontend/contracts/templateContract.ts
lsy 7e4d9c1b48 增加readme,删除了注释
前端:完善了插件和主题的契约
2024-11-19 00:20:31 +08:00

11 lines
247 B
TypeScript

export interface TemplateContract {
name: string;
description?: string;
config: {
layout?: string;
styles?: string[];
scripts?: string[];
};
loader: () => Promise<void>;
element: () => React.ReactNode;
}