char/avril

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

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

Charlotte Somport web extension to typescript44fe2c6

main
6.4 KiB105 linesraw
1/// <reference path="./src/internal.d.ts" />
2/// <reference path="../timers/types.d.ts" />
3// Handwritten contracts for the web helpers consumed by TS-authored extensions.
4type PromiseRejectionEvent = import("./src/events.js").PromiseRejectionEvent;
5declare function addEventListener(
6  type: "unhandledrejection" | "rejectionhandled",
7  listener: (event: PromiseRejectionEvent) => void,
8): void;
9declare function removeEventListener(
10  type: "unhandledrejection" | "rejectionhandled",
11  listener: (event: PromiseRejectionEvent) => void,
12): void;
13
14declare module "ext:web/idl.js" {
15  // The array has no prototype; callers must use indexing or captured intrinsics.
16  export const array: typeof import("./src/idl.js").array;
17  export const byteString: typeof import("./src/idl.js").byteString;
18  export const dictionary: typeof import("./src/idl.js").dictionary;
19  export const isObject: typeof import("./src/idl.js").isObject;
20  export const missing: typeof import("./src/idl.js").missing;
21  export const required: typeof import("./src/idl.js").required;
22  export const state: typeof import("./src/idl.js").state;
23  export const string: typeof import("./src/idl.js").string;
24  export const usv: typeof import("./src/idl.js").usv;
25}
26
27declare module "ext:web/interface.js" {
28  export const installInterface: typeof import("./src/interface.js").installInterface;
29  export const installGlobal: typeof import("./src/interface.js").installGlobal;
30}
31
32declare module "ext:web/events.js" {
33  export type EventListener = import("./src/events.js").EventListener;
34  export const abort: typeof import("./src/events.js").abort;
35  export type AbortController = import("./src/events.js").AbortController;
36  export const AbortController: typeof import("./src/events.js").AbortController;
37  export type AbortSignal = import("./src/events.js").AbortSignal;
38  export const AbortSignal: typeof import("./src/events.js").AbortSignal;
39  export const addAbort: typeof import("./src/events.js").addAbort;
40  export const addListener: typeof import("./src/events.js").addListener;
41  export const createException: typeof import("./src/events.js").createException;
42  export type CustomEvent = import("./src/events.js").CustomEvent;
43  export const CustomEvent: typeof import("./src/events.js").CustomEvent;
44  export const dataCloneError: typeof import("./src/events.js").dataCloneError;
45  export const dispatch: typeof import("./src/events.js").dispatch;
46  export type DOMException = import("./src/events.js").DOMException;
47  export const DOMException: typeof import("./src/events.js").DOMException;
48  export type ErrorEvent = import("./src/events.js").ErrorEvent;
49  export const ErrorEvent: typeof import("./src/events.js").ErrorEvent;
50  export type Event = import("./src/events.js").Event;
51  export const Event: typeof import("./src/events.js").Event;
52  export type EventTarget = import("./src/events.js").EventTarget;
53  export const EventTarget: typeof import("./src/events.js").EventTarget;
54  export const followSignal: typeof import("./src/events.js").followSignal;
55  export const hasListener: typeof import("./src/events.js").hasListener;
56  export const installGlobalEventTarget: typeof import("./src/events.js").installGlobalEventTarget;
57  export const isDispatching: typeof import("./src/events.js").isDispatching;
58  export const observeListeners: typeof import("./src/events.js").observeListeners;
59  export const preventDefault: typeof import("./src/events.js").preventDefault;
60  export type PromiseRejectionEvent = import("./src/events.js").PromiseRejectionEvent;
61  export const PromiseRejectionEvent: typeof import("./src/events.js").PromiseRejectionEvent;
62  export const removeListener: typeof import("./src/events.js").removeListener;
63  export const reportErrorValue: typeof import("./src/events.js").reportErrorValue;
64  export const reportException: typeof import("./src/events.js").reportException;
65  export const reportRejectionHandled: typeof import("./src/events.js").reportRejectionHandled;
66  export const reportUnhandledRejection: typeof import("./src/events.js").reportUnhandledRejection;
67  export const secret: typeof import("./src/events.js").secret;
68  export const signals: typeof import("./src/events.js").signals;
69}
70
71declare module "ext:web/navigator.js" {
72  export const userAgent: typeof import("./src/navigator.js").userAgent;
73}
74
75declare module "ext:web/messaging.js" {
76  export const adoptPort: typeof import("./src/messaging.js").adoptPort;
77  export const dispatchMessage: typeof import("./src/messaging.js").dispatchMessage;
78  export type MessageChannel = import("./src/messaging.js").MessageChannel;
79  export const MessageChannel: typeof import("./src/messaging.js").MessageChannel;
80  export const messageData: typeof import("./src/messaging.js").messageData;
81  export type MessageEvent = import("./src/messaging.js").MessageEvent;
82  export const MessageEvent: typeof import("./src/messaging.js").MessageEvent;
83  export type MessagePort = import("./src/messaging.js").MessagePort;
84  export const MessagePort: typeof import("./src/messaging.js").MessagePort;
85  export const messagePorts: typeof import("./src/messaging.js").messagePorts;
86  export const isMessagePort: typeof import("./src/messaging.js").isMessagePort;
87  export const referencePort: typeof import("./src/messaging.js").referencePort;
88  export const setPortCloseHandler: typeof import("./src/messaging.js").setPortCloseHandler;
89  export const startPort: typeof import("./src/messaging.js").startPort;
90  export const transferList: typeof import("./src/messaging.js").transferList;
91}
92
93declare module "ext:web/serialization.js" {
94  export const registerSerializable: typeof import("./src/serialization.js").registerSerializable;
95  export const registerWire: typeof import("./src/serialization.js").registerWire;
96  export const registerUncloneable: typeof import("./src/serialization.js").registerUncloneable;
97  export const registerTransferable: typeof import("./src/serialization.js").registerTransferable;
98  export const registerMarkedTransferable: typeof import("./src/serialization.js").registerMarkedTransferable;
99  export const markUncloneable: typeof import("./src/serialization.js").markUncloneable;
100  export const classify: typeof import("./src/serialization.js").classify;
101  export const decodeWire: typeof import("./src/serialization.js").decodeWire;
102  export const setStructuredClone: typeof import("./src/serialization.js").setStructuredClone;
103  export const cloneValue: typeof import("./src/serialization.js").cloneValue;
104  export const transferCallbacks: typeof import("./src/serialization.js").transferCallbacks;
105}