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

Method run

TypeScript/StudyTypeScript/src/generics_02.ts:5–8  ·  view source on GitHub ↗
(value: T)

Source from the content-addressed store, hash-verified

3class Log<T> {
4 // static run(value: T) { // 泛型不能用于类的静态成员
5 run(value: T) {
6 console.log(value)
7 return value
8 }
9}
10
11// let log1 = new Log<number>()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected