Skip to content

Commit b6015f8

Browse files
authored
Update Index.ts
1 parent f957e35 commit b6015f8

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/Index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,15 @@ import path = require('path');
55
import fs = require('fs');
66
import process = require('process');
77

8-
function Plugin(outputDirectory: string, paths: string[]|string, options: EmitOptions, extension?: "d.ts"|"ts" = "d.ts") {
8+
function Plugin(outputDirectory: string, paths: string[]|string, options: EmitOptions, extension?: "d.ts"|"ts") {
99
if(!paths)
1010
throw new Error('Must specify paths to use for C# to TypeScript conversion.');
1111

1212
if(!outputDirectory)
1313
throw new Error('Must specify the output directory to use for C# to TypeScript conversion.');
14+
15+
if(!extension)
16+
extension = "d.ts";
1417

1518
if(!Array.isArray(paths))
1619
paths = [paths];

0 commit comments

Comments
 (0)