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/data-urls) 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/data-urls
Summary
This package contains type definitions for data-urls (https://github.com/jsdom/data-urls#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/data-urls.
index.d.ts
// Type definitions for data-urls 3.0
// Project: https://github.com/jsdom/data-urls#readme
// Definitions by: Jaime Filho <https://github.com/jaimeadf>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.6
/// <reference types="node" />
import MIMEType = require('whatwg-mimetype');
import { URLRecord } from 'whatwg-url';
declare function parseDataURL(stringInput: string): parseDataURL.DataURL | null;
declare namespace parseDataURL {
interface DataURL {
mimeType: MIMEType;
body: Uint8Array;
}
function fromURLRecord(urlRecord: URLRecord): DataURL | null;
}
export = parseDataURL;
Additional Details
- Last updated: Tue, 16 Aug 2022 08:32:34 GMT
- Dependencies: @types/whatwg-mimetype, @types/whatwg-url, @types/node
- Global values: none
Credits
These definitions were written by Jaime Filho.