deployphp/node_modules/data-uri-to-buffer/dist/index.d.ts

16 lines
439 B
TypeScript
Raw Permalink Normal View History

2023-01-10 15:49:41 +00:00
/// <reference types="node" />
export interface MimeBuffer extends Buffer {
type: string;
typeFull: string;
charset: string;
}
/**
* Returns a `Buffer` instance from the given data URI `uri`.
*
* @param {String} uri Data URI to turn into a Buffer instance
* @returns {Buffer} Buffer instance from Data URI
* @api public
*/
export declare function dataUriToBuffer(uri: string): MimeBuffer;
export default dataUriToBuffer;