55
66interface Element {
77 /**
8- * requestFullscreen() but available in Safari.
9- */
8+ * requestFullscreen() but available in Safari.
9+ */
1010 webkitRequestFullscreen ?( ) : unknown ;
1111}
1212
1313interface Document {
1414 /**
15- * exitFullscreen() but available in Safari.
16- */
15+ * exitFullscreen() but available in Safari.
16+ */
1717 webkitExitFullscreen ?( ) : unknown ;
1818 /**
1919 * fullscreenElement but available in Safari.
@@ -26,25 +26,35 @@ interface Document {
2626 */
2727declare class NDEFReader extends EventTarget {
2828 constructor ( ) ;
29- scan ( options ?: { signal ?: AbortSignal } ) : Promise < void > ;
30- onreading ?( event : Event & { message : NDEFMessage } ) : void ;
29+ scan ( options ?: { signal ?: AbortSignal } ) : Promise < void > ;
30+ onreading ?( event : Event & { message : NDEFMessage } ) : void ;
3131 onreadingerror ?( event : Event ) : void ;
3232}
3333
34- type TypedArray = Uint8Array | Int8Array | Uint16Array | Int16Array | Uint32Array | Int32Array | BigUint64Array | BigInt64Array ;
34+ type TypedArray =
35+ | Uint8Array
36+ | Int8Array
37+ | Uint16Array
38+ | Int16Array
39+ | Uint32Array
40+ | Int32Array
41+ | BigUint64Array
42+ | BigInt64Array ;
3543
3644/**
3745 * https://developer.mozilla.org/en-US/docs/Web/API/NDEFMessage/NDEFMessage
3846 */
3947declare class NDEFMessage {
40- constructor ( records : Array < {
41- data ?: string | ArrayBuffer | TypedArray | DataView | NDEFRecord [ ] ,
42- encoding ?: string ;
43- id ?: string ;
44- lang ?: string ;
45- mediaType ?: string ;
46- recordType ?: string ;
47- } > ) ;
48+ constructor (
49+ records : Array < {
50+ data ?: string | ArrayBuffer | TypedArray | DataView | NDEFRecord [ ] ;
51+ encoding ?: string ;
52+ id ?: string ;
53+ lang ?: string ;
54+ mediaType ?: string ;
55+ recordType ?: string ;
56+ } >
57+ ) ;
4858 readonly records : NDEFRecord [ ] ;
4959}
5060
@@ -68,7 +78,15 @@ interface NetworkInformation {
6878 effectiveType : string ;
6979 rtt : number ;
7080 saveData : boolean ;
71- type : 'bluetooth' | 'cellular' | 'ethernet' | 'none' | 'wifi' | 'wimax' | 'other' | 'unknown' ;
81+ type :
82+ | "bluetooth"
83+ | "cellular"
84+ | "ethernet"
85+ | "none"
86+ | "wifi"
87+ | "wimax"
88+ | "other"
89+ | "unknown" ;
7290}
7391
7492interface Navigator {
0 commit comments