mirror of
https://github.com/deployphp/action.git
synced 2024-11-30 07:19:03 +00:00
16 lines
439 B
TypeScript
16 lines
439 B
TypeScript
|
/// <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;
|