Newer
Older
vue-indexer / node_modules / get-uri / dist / data.d.ts
@eugene-sukhodolskiy eugene-sukhodolskiy on 24 Sep 428 bytes v1.0
/// <reference types="node" />
/// <reference types="node" />
import { Readable } from 'stream';
import { GetUriProtocol } from './';
declare class DataReadable extends Readable {
    hash?: string;
    constructor(hash: string, buf: Buffer);
}
export interface DataOptions {
    cache?: DataReadable;
}
/**
 * Returns a Readable stream from a "data:" URI.
 */
export declare const data: GetUriProtocol<DataOptions>;
export {};