MCPcopy Create free account
hub / github.com/SincereCSL/Playgrounds / Circle

Interface Circle

TypeScript/StudyTypeScript/src/advanced_01.ts:52–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52interface Circle {
53 kind: 'circle',
54 r: number
55}
56
57type Shape = Square | Rectangle | Circle
58function area(s: Shape){ // 利用两种类型的共有属性来创建不同的类型保护区块

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected