Skip to content

Commit 537b1c0

Browse files
committed
transpile: fix types of optional args
1 parent 854150a commit 537b1c0

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

index.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -273,10 +273,12 @@ function generateInterfaceDocumentation(interfaceNode: InterfaceDeclaration): st
273273
*/
274274
function transpile(
275275
src: string,
276-
filename: string,
277-
compilerOptions: object = {},
278-
debug = false,
276+
filename?: string,
277+
compilerOptions?: object,
278+
debug?,
279279
): string {
280+
if (!compilerOptions) compilerOptions = {};
281+
if (!debug) debug = false;
280282
try {
281283
const project = new Project({
282284
compilerOptions: {

0 commit comments

Comments
 (0)