类型系统基础
类型系统高阶
模块组织史与工程
前端平台类型
工程化与综合
23-esm-live-bindings
23-esm-live-bindings/04-import-type/src/types.ts
typescript · 0.2 KB
运行:23 · import-type
点击「运行示例」后,左侧显示源码、右侧显示运行结果;console 输出会实时回传。
console
// 同时导出类型与值 export interface Shape { name: string; } export function area(width: number, height: number): number { return width * height; }
该文件由构建期采集,未做任何改写;源码页不进入搜索引擎索引。