diff --git a/index.d.ts b/index.d.ts index f956c9a..69c431e 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,5 +1,5 @@ import ts = require('typescript'); -declare function tss(code: string, options: ts.CompilerOptions): string; +declare function tss(code: string, options?: ts.CompilerOptions): string; declare namespace tss { class TypeScriptSimple { private doSemanticChecks; diff --git a/index.ts b/index.ts index 66ad449..ebbb274 100644 --- a/index.ts +++ b/index.ts @@ -6,7 +6,7 @@ import ts = require('typescript'); var FILENAME_TS = 'file.ts'; -function tss(code: string, options: ts.CompilerOptions): string { +function tss(code: string, options?: ts.CompilerOptions): string { if (options) { return new tss.TypeScriptSimple(options).compile(code); } else {