Skip to content
This repository has been archived by the owner on Jun 27, 2018. It is now read-only.

tss second parameter "options" marked as optional #26

Merged
merged 2 commits into from
Nov 2, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down