mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
30 lines
457 B
TypeScript
30 lines
457 B
TypeScript
// Ambient functions
|
|
declare function f();
|
|
|
|
abstract class C {
|
|
// Abstract methods
|
|
abstract h();
|
|
|
|
// Overload signatures
|
|
g(x: number): number;
|
|
g(x: string): string;
|
|
g(x: any) {}
|
|
|
|
// Abstract fields
|
|
abstract x: number;
|
|
}
|
|
|
|
// Same but ambient
|
|
declare abstract class D {
|
|
// Abstract methods
|
|
abstract h();
|
|
|
|
// Overload signatures
|
|
g(x: number): number;
|
|
g(x: string): string;
|
|
g(x: any) {}
|
|
|
|
// Abstract fields
|
|
abstract x: number;
|
|
}
|