UNPKG

typescript-definition-tester

Version:

The purpose of this repository is to wrap the TypeScript compiler so that a consumer can easily test their ambient module declarations against example *.ts files. This module uses chai assertions so that a user can easily add this step to existing unit t

9 lines (7 loc) 255 B
/// <reference path="../../dist/typescript-definition-tester.d.ts" /> import * as tt from "typescript-definition-tester"; import * as test from 'test'; tt.compile(['somefilename'], {}, () => {}); const person: test.IPerson = { name: 'Adam' }