Added missing properties to constructor options bag in 'vinyl'.

This commit is contained in:
Daniel Rosenwasser
2015-08-10 17:07:22 -07:00
parent 9601565ddf
commit dbfb98a84c
+12 -3
View File
@@ -27,9 +27,18 @@ declare module 'vinyl' {
*/
path?: string;
/**
* Type: Buffer|Stream|null (Default: null)
* Path history. Has no effect if options.path is passed.
*/
contents?: any;
history?: string[];
/**
* The result of an fs.stat call. See fs.Stats for more information.
*/
stat?: fs.Stats;
/**
* File contents.
* Type: Buffer, Stream, or null
*/
contents?: Buffer | NodeJS.ReadWriteStream;
});
/**
@@ -48,7 +57,7 @@ declare module 'vinyl' {
/**
* Type: Buffer|Stream|null (Default: null)
*/
public contents: any;
public contents: Buffer | NodeJS.ReadableStream;
/**
* Returns path.relative for the file base and file path.
* Example: