char/avril

(wip) why'd you have to go and make things so complicaaaaated?

git clone https://git.t4t.associates/char/avril

Charlotte Somport http_types extension to typescript377fbf9

main
779 B21 linesraw
1declare module "ext:core/ops" {
2  export interface EncodeCounts {
3    read: number;
4    written: number;
5  }
6  export function op_encoding_decode_utf8(bytes: Uint8Array<ArrayBuffer>): string;
7  export function op_encoding_close(id: number): null;
8  export function op_encoding_label(label: string): string | null;
9  export function op_encoding_encode(source: string): Uint8Array<ArrayBuffer>;
10  export function op_encoding_encode_into(source: string, destination: Uint8Array<ArrayBuffer>): EncodeCounts;
11  export function op_encoding_decode(
12    args: [
13      id: number | null,
14      encoding: string,
15      fatal: boolean,
16      ignoreBOM: boolean,
17      bytes: Uint8Array<ArrayBuffer>,
18      stream: boolean,
19    ],
20  ): [text: string, invalid: boolean, id: number | null];
21}