UNPKG

typescript-closure-tools

Version:

Command-line tools to convert closure-style JSDoc annotations to typescript, and to convert typescript sources to closure externs files

16 lines (9 loc) 280 B
/// <reference path="assertion-error.d.ts" /> import AssertionError = require('assertion-error'); var e: AssertionError; var str: string; function foo () { } e = new AssertionError(str); e = new AssertionError(str, {a:1, b:2}); e = new AssertionError(str, {a:1, b:2}, foo);