|
| 1 | +diff --git a/index.d.ts b/index.d.ts |
| 2 | +index b59810ce0fcaaf647830359010987348e11b0479..0f9d24ab390ac12010b671bc8aab02909e93fa89 100644 |
| 3 | +--- a/index.d.ts |
| 4 | ++++ b/index.d.ts |
| 5 | +@@ -39,7 +39,7 @@ interface USBConnectionEventInit extends EventInit { |
| 6 | + |
| 7 | + declare class USBConfiguration { |
| 8 | + readonly configurationValue: number; |
| 9 | +- readonly configurationName?: string | undefined; |
| 10 | ++ readonly configurationName: string | null; |
| 11 | + readonly interfaces: USBInterface[]; |
| 12 | + } |
| 13 | + |
| 14 | +@@ -57,14 +57,14 @@ declare class USBAlternateInterface { |
| 15 | + readonly interfaceClass: number; |
| 16 | + readonly interfaceSubclass: number; |
| 17 | + readonly interfaceProtocol: number; |
| 18 | +- readonly interfaceName?: string | undefined; |
| 19 | ++ readonly interfaceName: string | null; |
| 20 | + readonly endpoints: USBEndpoint[]; |
| 21 | + } |
| 22 | + |
| 23 | + declare class USBInTransferResult { |
| 24 | + constructor(status: USBTransferStatus, data?: DataView); |
| 25 | + readonly data?: DataView | undefined; |
| 26 | +- readonly status?: USBTransferStatus | undefined; |
| 27 | ++ readonly status: USBTransferStatus; |
| 28 | + } |
| 29 | + |
| 30 | + declare class USBOutTransferResult { |
| 31 | +@@ -76,7 +76,7 @@ declare class USBOutTransferResult { |
| 32 | + declare class USBIsochronousInTransferPacket { |
| 33 | + constructor(status: USBTransferStatus, data?: DataView); |
| 34 | + readonly data?: DataView | undefined; |
| 35 | +- readonly status?: USBTransferStatus | undefined; |
| 36 | ++ readonly status: USBTransferStatus; |
| 37 | + } |
| 38 | + |
| 39 | + declare class USBIsochronousInTransferResult { |
| 40 | +@@ -140,10 +140,10 @@ declare class USBDevice { |
| 41 | + readonly deviceVersionMajor: number; |
| 42 | + readonly deviceVersionMinor: number; |
| 43 | + readonly deviceVersionSubminor: number; |
| 44 | +- readonly manufacturerName?: string | undefined; |
| 45 | +- readonly productName?: string | undefined; |
| 46 | +- readonly serialNumber?: string | undefined; |
| 47 | +- readonly configuration?: USBConfiguration | undefined; |
| 48 | ++ readonly manufacturerName: string | null; |
| 49 | ++ readonly productName: string | null; |
| 50 | ++ readonly serialNumber: string | null; |
| 51 | ++ readonly configuration: USBConfiguration | null; |
| 52 | + readonly configurations: USBConfiguration[]; |
| 53 | + readonly opened: boolean; |
| 54 | + open(): Promise<void>; |
0 commit comments