mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-28 12:33:35 +01:00
Convert gulp files to ts
For #277526 Had to add a few ugly casts in difficult cases but mostly trying to add proper types
This commit is contained in:
@@ -209,7 +209,7 @@ function bundleESMTask(opts: IBundleESMTaskOpts): NodeJS.ReadWriteStream {
|
||||
}));
|
||||
}
|
||||
|
||||
export interface IBundleESMTaskOpts {
|
||||
export interface IBundleTaskOpts {
|
||||
/**
|
||||
* Destination folder for the bundled files.
|
||||
*/
|
||||
@@ -220,7 +220,7 @@ export interface IBundleESMTaskOpts {
|
||||
esm: IBundleESMTaskOpts;
|
||||
}
|
||||
|
||||
export function bundleTask(opts: IBundleESMTaskOpts): () => NodeJS.ReadWriteStream {
|
||||
export function bundleTask(opts: IBundleTaskOpts): () => NodeJS.ReadWriteStream {
|
||||
return function () {
|
||||
return bundleESMTask(opts.esm).pipe(gulp.dest(opts.out));
|
||||
};
|
||||
|
||||
15
build/lib/typings/gulp-gunzip.d.ts
vendored
Normal file
15
build/lib/typings/gulp-gunzip.d.ts
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
declare module 'gulp-gunzip' {
|
||||
import type { Transform } from 'stream';
|
||||
|
||||
/**
|
||||
* Gunzip plugin for gulp
|
||||
*/
|
||||
function gunzip(): Transform;
|
||||
|
||||
export = gunzip;
|
||||
}
|
||||
15
build/lib/typings/gulp-untar.d.ts
vendored
Normal file
15
build/lib/typings/gulp-untar.d.ts
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
declare module 'gulp-untar' {
|
||||
import type { Transform } from 'stream';
|
||||
|
||||
/**
|
||||
* Extract TAR files
|
||||
*/
|
||||
function untar(): Transform;
|
||||
|
||||
export = untar;
|
||||
}
|
||||
5
build/lib/typings/rcedit.d.ts
vendored
Normal file
5
build/lib/typings/rcedit.d.ts
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
|
||||
declare module 'rcedit' {
|
||||
|
||||
export default function rcedit(exePath, options, cb): Promise<void>;
|
||||
}
|
||||
Reference in New Issue
Block a user