示例工程 31-tsconfig-build-pipeline

31-tsconfig-build-pipeline/03-isolated-verbatim/src/types.ts

typescript · 0.1 KB

运行:31 · isolated-verbatim

点击「运行示例」后,左侧显示源码、右侧显示运行结果;console 输出会实时回传。

export interface Shape {
  name: string;
}
 
export function describe(shape: Shape): string {
  return shape.name;
}