Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
/// 泛型类
3
class
Log<T> {
4
// static run(value: T) { // 泛型不能用于类的静态成员
Callers
nothing calls this directly
Calls
2
log3
Function · 0.85
run
Method · 0.65
Tested by
no test coverage detected