Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SincereCSL/Playgrounds
/
Class
TypeScript/StudyTypeScript/src/generics_02.ts:3–3 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
/// 泛型: 泛型类与泛型约束
2
/// 泛型类
3
class
Log<T> {
4
// static run(value: T) { // 泛型不能用于类的静态成员
5
run(value: T) {
6
console.log(value)
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected