UNPKG

484 BTypeScriptView Raw
1/// <reference types="node" />
2import { EventEmitter } from 'events';
3import File = require('vinyl');
4import { PassThrough } from 'stream';
5export declare class Store extends EventEmitter {
6 private store;
7 private load;
8 get(filepath: string): File;
9 existsInMemory(filepath: string): boolean;
10 add(file: File): this;
11 each(onEach: (file: File, index: number) => void): this;
12 all(): File[];
13 stream(): PassThrough;
14}
15export declare function create(): Store;