mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
23 lines
626 B
TypeScript
23 lines
626 B
TypeScript
// Type definitions for mem-fs 1.1
|
|
// Project: https://github.com/sboudrias/mem-fs
|
|
// Definitions by: My Food Bag <https://github.com/MyFoodBag>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
/// <reference types="node" />
|
|
|
|
import { EventEmitter } from 'events';
|
|
import { Transform } from 'stream';
|
|
import * as File from 'vinyl';
|
|
|
|
export interface Store extends EventEmitter {
|
|
get: (filepath: string) => File;
|
|
add: (file: File) => this;
|
|
each: (callback: (file: File, index: number) => void) => this;
|
|
stream: () => Transform;
|
|
}
|
|
|
|
export function create(): Store;
|
|
|
|
export namespace memFs {
|
|
}
|