test.d.ts 288 B

123456789101112131415161718
  1. declare let foo: number;
  2. declare function greet(greeting: string): void;
  3. declare namespace myLib {
  4. function makeGreeting(s: string): string;
  5. let numberOfGreetings: number;
  6. }
  7. declare class Greeter {
  8. constructor(greeting: string);
  9. greeting: string;
  10. showGreeting(): void;
  11. }