@@ -1936,7 +1936,7 @@ interface AnimationEventMap {
19361936}
19371937
19381938interface Animation extends EventTarget {
1939- currentTime: number | null;
1939+ currentTime: CSSNumberish | null;
19401940 effect: AnimationEffect | null;
19411941 readonly finished: Promise<Animation>;
19421942 id: string;
@@ -1948,7 +1948,7 @@ interface Animation extends EventTarget {
19481948 playbackRate: number;
19491949 readonly ready: Promise<Animation>;
19501950 readonly replaceState: AnimationReplaceState;
1951- startTime: number | null;
1951+ startTime: CSSNumberish | null;
19521952 timeline: AnimationTimeline | null;
19531953 cancel(): void;
19541954 commitStyles(): void;
@@ -5652,7 +5652,7 @@ interface GlobalEventHandlers {
56525652 * @param ev The event.
56535653 */
56545654 onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
5655- /** @deprecated This is a legacy alias of `onanimationend `. */
5655+ /** @deprecated This is a legacy alias of `onanimationstart `. */
56565656 onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
56575657 /** @deprecated This is a legacy alias of `onanimationiteration`. */
56585658 onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
@@ -8622,6 +8622,14 @@ interface InnerHTML {
86228622 innerHTML: string;
86238623}
86248624
8625+ interface InputDeviceInfo extends MediaDeviceInfo {
8626+ }
8627+
8628+ declare var InputDeviceInfo: {
8629+ prototype: InputDeviceInfo;
8630+ new(): InputDeviceInfo;
8631+ };
8632+
86258633interface InputEvent extends UIEvent {
86268634 readonly data: string | null;
86278635 readonly dataTransfer: DataTransfer | null;
@@ -16559,14 +16567,14 @@ declare namespace WebAssembly {
1655916567 (message?: string): CompileError;
1656016568 };
1656116569
16562- interface Global {
16563- value: any ;
16564- valueOf(): any ;
16570+ interface Global<T extends ValueType = ValueType> {
16571+ value: ValueTypeMap[T] ;
16572+ valueOf(): ValueTypeMap[T] ;
1656516573 }
1656616574
1656716575 var Global: {
1656816576 prototype: Global;
16569- new(descriptor: GlobalDescriptor, v?: any ): Global;
16577+ new<T extends ValueType = ValueType> (descriptor: GlobalDescriptor<T> , v?: ValueTypeMap[T] ): Global<T> ;
1657016578 };
1657116579
1657216580 interface Instance {
@@ -16629,9 +16637,9 @@ declare namespace WebAssembly {
1662916637 new(descriptor: TableDescriptor, value?: any): Table;
1663016638 };
1663116639
16632- interface GlobalDescriptor {
16640+ interface GlobalDescriptor<T extends ValueType = ValueType> {
1663316641 mutable?: boolean;
16634- value: ValueType ;
16642+ value: T ;
1663516643 }
1663616644
1663716645 interface MemoryDescriptor {
@@ -16657,19 +16665,28 @@ declare namespace WebAssembly {
1665716665 maximum?: number;
1665816666 }
1665916667
16668+ interface ValueTypeMap {
16669+ anyfunc: Function;
16670+ externref: any;
16671+ f32: number;
16672+ f64: number;
16673+ i32: number;
16674+ i64: bigint;
16675+ }
16676+
1666016677 interface WebAssemblyInstantiatedSource {
1666116678 instance: Instance;
1666216679 module: Module;
1666316680 }
1666416681
1666516682 type ImportExportKind = "function" | "global" | "memory" | "table";
1666616683 type TableKind = "anyfunc" | "externref";
16667- type ValueType = "anyfunc" | "externref" | "f32" | "f64" | "i32" | "i64";
1666816684 type ExportValue = Function | Global | Memory | Table;
1666916685 type Exports = Record<string, ExportValue>;
1667016686 type ImportValue = ExportValue | number;
1667116687 type Imports = Record<string, ModuleImports>;
1667216688 type ModuleImports = Record<string, ImportValue>;
16689+ type ValueType = keyof ValueTypeMap;
1667316690 function compile(bytes: BufferSource): Promise<Module>;
1667416691 function compileStreaming(source: Response | PromiseLike<Response>): Promise<Module>;
1667516692 function instantiate(bytes: BufferSource, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
@@ -17404,7 +17421,7 @@ declare var onvolumechange: ((this: Window, ev: Event) => any) | null;
1740417421 * @param ev The event.
1740517422 */
1740617423declare var onwaiting: ((this: Window, ev: Event) => any) | null;
17407- /** @deprecated This is a legacy alias of `onanimationend `. */
17424+ /** @deprecated This is a legacy alias of `onanimationstart `. */
1740817425declare var onwebkitanimationend: ((this: Window, ev: Event) => any) | null;
1740917426/** @deprecated This is a legacy alias of `onanimationiteration`. */
1741017427declare var onwebkitanimationiteration: ((this: Window, ev: Event) => any) | null;
0 commit comments