index.d.ts 859 B

12345678910111213141516171819
  1. declare module "gulp-concat-filenames" {
  2. import { Duplex } from 'stream';
  3. interface IConcatFilenameOptions {
  4. // The character to use in place of '\n'' for a newline. The default value will be '\n'
  5. newline?: string;
  6. // Some text to prepend to every entry in the list of filenames
  7. prepend?: string;
  8. // Some text to append to every intry in the list of filenames
  9. append?: string;
  10. // A function that takes one parameter (the file name) and returns the string after some formatting. Can be used in addition to, or instead of, append and prepend
  11. template?: (filename: string) => string;
  12. // the root folder. Including this argument will return a list of relative paths instead of absolute paths.
  13. root?: string;
  14. }
  15. export default function concatFilenames(filename: string, options: IConcatFilenameOptions): Duplex;
  16. }