mirror of
https://github.com/swc-project/swc.git
synced 2024-12-22 21:21:31 +03:00
22 lines
472 B
TypeScript
22 lines
472 B
TypeScript
declare class StaticToString {
|
|
static toString(): void;
|
|
}
|
|
|
|
function foo(staticToString: StaticToString) {
|
|
return staticToString instanceof StaticToString;
|
|
}
|
|
|
|
declare class StaticToNumber {
|
|
static toNumber(): void;
|
|
}
|
|
function bar(staticToNumber: StaticToNumber) {
|
|
return staticToNumber instanceof StaticToNumber;
|
|
}
|
|
|
|
declare class NormalToString {
|
|
toString(): void;
|
|
}
|
|
function baz(normal: NormalToString) {
|
|
return normal instanceof NormalToString;
|
|
}
|