Files
upage-git/app/types/artifact.ts

13 lines
372 B
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* UPageArtifactData 是 UPage 的 artifact 类型,由 AI 返回的结构化数据。
* 最终对应 editor 的 Page 数据。
*/
export interface UPageArtifactData {
// artifact id唯一
id: string;
// 页面名称,如 `index`,最终渲染为页面文件名,唯一
name: string;
// 页面标题,最终渲染为页面标题
title: string;
}