echoes/frontend/Requirements/templateTypeRequirement.ts

35 lines
876 B
TypeScript
Raw Normal View History

// File path: types/templateType.ts
/**
*
*
*
*/
import React from "react";
import { ExtensionProps } from "types/extensionRequirement";
export interface TemplateConfig {
/**
*
*
*
*/
dependencies: Record<string, {
name: string; // 依赖字段的名称
description?: string; // 依赖字段的描述信息
required?: boolean; // 依赖字段是否必填
}>;
extensions?: Record<string, {
description?: string;
extension: ExtensionProps;
}>;
/**
*
*
* React
*/
page(params: Map<string, string>): React.FC;
}