0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-10-31 09:14:20 -04:00
denoland-deno/op_crates/web/internal.d.ts
Luca Casonato c867c1aa47
fix: enable FileReader wpt and align to spec (#10063)
This adds some algorithms from the whatwg mimesniff, whatwg infra, and
whatwg encoding specs that FileReader needs to use internally.
2021-04-08 15:05:08 +02:00

41 lines
954 B
TypeScript

// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
/// <reference no-default-lib="true" />
/// <reference lib="esnext" />
declare namespace globalThis {
declare namespace __bootstrap {
declare var infra: {
collectSequenceOfCodepoints(
input: string,
position: number,
condition: (char: string) => boolean,
): {
result: string;
position: number;
};
};
declare var mimesniff: {
parseMimeType(input: string): {
type: string;
subtype: string;
parameters: Map<string, string>;
} | null;
};
declare var eventTarget: {
EventTarget: typeof EventTarget;
};
declare var location: {
getLocationHref(): string | undefined;
};
declare var base64: {
byteLength(b64: string): number;
toByteArray(b64: string): Uint8Array;
fromByteArray(uint8: Uint8Array): string;
};
}
}