echoes/frontend/contracts/templateContract.ts

12 lines
228 B
TypeScript
Raw Normal View History

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