MCPcopy Create free account
hub / github.com/SincereCSL/Playgrounds / generics_02.ts

File generics_02.ts

TypeScript/StudyTypeScript/src/generics_02.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1/// 泛型: 泛型类与泛型约束
2/// 泛型类
3class Log<T> {
4 // static run(value: T) { // 泛型不能用于类的静态成员

Callers

nothing calls this directly

Calls 2

log3Function · 0.85
runMethod · 0.65

Tested by

no test coverage detected