JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 46451
  • Score
    100M100P100Q16986F
  • License MIT

TypeScript definitions for mem-fs

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@types/mem-fs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    Installation

    npm install --save @types/mem-fs

    Summary

    This package contains type definitions for mem-fs (https://github.com/sboudrias/mem-fs).

    Details

    Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mem-fs.

    index.d.ts

    // 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 {
    }
    

    Additional Details

    Credits

    These definitions were written by My Food Bag.