11 lines
158 B
JavaScript
11 lines
158 B
JavaScript
![]() |
declare class C {
|
||
|
static x: number;
|
||
|
static foo(x: number): void;
|
||
|
}
|
||
|
|
||
|
C.x = "";
|
||
|
C.foo("");
|
||
|
|
||
|
(C.name: string);
|
||
|
(C.name: number); // error, it's a string
|