Skip to content

Commit 1ba4505

Browse files
authored
Merge pull request #509 from leonard-thieu/fix-type-definitions
Fix type definitions
2 parents 7af0c66 + 3161649 commit 1ba4505

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/main.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import * as utils from './utils';
66
import * as _reporter from './reporter';
77
import { TsConfig } from './types';
88

9-
function compile(): compile.CompileStream;
109
function compile(proj: _project.Project, theReporter?: _reporter.Reporter): compile.CompileStream;
1110
function compile(settings: compile.Settings, theReporter?: _reporter.Reporter): compile.CompileStream;
11+
function compile(): compile.CompileStream;
1212
function compile(param?: any, theReporter?: _reporter.Reporter): compile.CompileStream {
1313
if (arguments.length >= 3) {
1414
utils.deprecate("Reporter are now passed as the second argument",
@@ -143,8 +143,8 @@ module compile {
143143
export type CompileStream = _project.ICompileStream;
144144
export import reporter = _reporter;
145145

146-
export function createProject(settings?: Settings);
147-
export function createProject(tsConfigFileName: string, settings?: Settings);
146+
export function createProject(tsConfigFileName: string, settings?: Settings): Project;
147+
export function createProject(settings?: Settings): Project;
148148
export function createProject(fileNameOrSettings?: string | Settings, settings?: Settings): Project {
149149
let tsConfigFileName: string = undefined;
150150
let tsConfigContent: TsConfig = undefined;

0 commit comments

Comments
 (0)