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

Interface Obj

TypeScript/StudyTypeScript/src/advanced_03.ts:2–6  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1/// 高级类型:映射类型
2interface Obj {
3 a1: string;
4 b1: number;
5 c1: boolean;
6}
7
8// Readonly<Type>返回一个新类型,将参数类型Type的所有属性变为只读属性
9type ReadonlyObj = Readonly<Obj>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected