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

7 lines (6 loc) 352 B
/// <reference path="../../dist/typescript-definition-tester.d.ts" /> import * as tt from "typescript-definition-tester"; tt.compileDirectory('somePath', () => { }); tt.compileDirectory('somePath', {}, () => { }); tt.compileDirectory('somePath', (fileName) => true, () => { }); tt.compileDirectory('somePath', (fileName) => true, {}, () => { });