Installation
npm install --save @types/parse-data-url
Summary
This package contains type definitions for parse-data-url (https://github.com/killmenot/parse-data-url).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/parse-data-url.
index.d.ts
/// <reference types="node" />
declare function parseDataUrl(s: string): false | parseDataUrl.DataUrl;
declare namespace parseDataUrl {
interface DataUrl {
mediaType: string;
contentType: string;
charset: string;
base64: boolean;
data: string;
toBuffer(): Buffer;
}
}
export = parseDataUrl;
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: @types/node
Credits
These definitions were written by Jaime Filho.