RecipesChapter 12: Type Development Strategies

Providing Multiple Library Versions

Recipe 12.10 from The TypeScript Cookbook

/// <reference path="lib.v1.d.ts" />

declare module "lib" {
  export interface Connection {
    close(): void;
  }
}
Open in TypeScript Playground →