interfaces.ts

The interfaces.ts file declares and exports a couple of interfaces:

export interface Weapon { 
    tryHit(fromDistance: number): boolean; 
} 
 
export interface Named { 
    name: string; 
} 

Get Learning TypeScript 2.x - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.