📜  typescript 从界面中选择类型 - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:20.901000             🧑  作者: Mango

代码示例1
interface Todo {  title: string;  description: string;  completed: boolean;}
type TodoPreview = Pick;
const todo: TodoPreview = {  title: "Clean room",  completed: false,};
todo; const todo: TodoPreviewTry