mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 21:00:01 +08:00
Fix return type for createProject()
This commit is contained in:
@@ -26,6 +26,12 @@ var tsProject = typescript.createProject({
|
||||
noExternalResolve: true
|
||||
});
|
||||
|
||||
gulp.task('scripts', function() {
|
||||
var tsResult = tsProject.src()
|
||||
.pipe(typescript(tsProject));
|
||||
|
||||
return tsResult.js.pipe(gulp.dest('release'));
|
||||
});
|
||||
|
||||
var mainTscProject = typescript.createProject("tsconfig.json", {
|
||||
target: "es6"
|
||||
|
||||
10
gulp-typescript/gulp-typescript.d.ts
vendored
10
gulp-typescript/gulp-typescript.d.ts
vendored
@@ -1,6 +1,6 @@
|
||||
// Type definitions for gulp-typescript
|
||||
// Project: https://github.com/ivogabe/gulp-typescript
|
||||
// Definitions by: Asana <https://asana.com>
|
||||
// Definitions by: Asana <https://asana.com>, Thomas Corbière <https://github.com/tomc974>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
/// <reference path="../node/node.d.ts"/>
|
||||
@@ -9,8 +9,8 @@ declare module "gulp-typescript" {
|
||||
function GulpTypescript(params: GulpTypescript.Params, filters?: GulpTypescript.FilterSettings, reporter?: GulpTypescript.Reporter): GulpTypescript.CompilationStream;
|
||||
|
||||
module GulpTypescript {
|
||||
export function createProject(params: Params): Params;
|
||||
export function createProject(file: string, params: Params): Params;
|
||||
export function createProject(params: Params): Project;
|
||||
export function createProject(file: string, params: Params): Project;
|
||||
export function filter(filters: FilterSettings): CompilationStream;
|
||||
interface Params {
|
||||
declarationFiles?: boolean;
|
||||
@@ -25,6 +25,10 @@ declare module "gulp-typescript" {
|
||||
target?: string;
|
||||
}
|
||||
|
||||
interface Project {
|
||||
src(): NodeJS.ReadWriteStream
|
||||
}
|
||||
|
||||
interface FilterSettings {
|
||||
referencedFrom?: string[];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user