mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 02:58:56 +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));
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user