feat(tsc-wrapped): Support of vinyl like config file was added (#13987)
This feature was implemented in order to provide easier way of use in gulp
This commit is contained in:

committed by
Alex Rickabaugh

parent
83361d811d
commit
0c7726dd74
19
tools/@angular/tsc-wrapped/src/vinyl_file.ts
Normal file
19
tools/@angular/tsc-wrapped/src/vinyl_file.ts
Normal file
@ -0,0 +1,19 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright Google Inc. All Rights Reserved.
|
||||
*
|
||||
* Use of this source code is governed by an MIT-style license that can be
|
||||
* found in the LICENSE file at https://angular.io/license
|
||||
*/
|
||||
export interface VinylFile extends Object {
|
||||
// Absolute path to the virtual file
|
||||
path: string;
|
||||
|
||||
// Content of the virtual file
|
||||
contents: Buffer;
|
||||
}
|
||||
;
|
||||
|
||||
export function isVinylFile(obj: any): obj is VinylFile {
|
||||
return (typeof obj === 'object') && ('path' in obj) && ('contents' in obj);
|
||||
};
|
Reference in New Issue
Block a user