Skip to content

Commit bb92e98

Browse files
fix: re-generate types based on specifciation updates (GoogleChromeLabs#162)
1 parent c2343cc commit bb92e98

File tree

4 files changed

+32
-10
lines changed

4 files changed

+32
-10
lines changed

out/gen/main.d.ts

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,13 @@ export declare namespace Browser {
310310
export declare namespace Browser {
311311
type CreateUserContext = {
312312
method: 'browser.createUserContext';
313-
params: EmptyParams;
313+
params: Browser.CreateUserContextParameters;
314+
};
315+
}
316+
export declare namespace Browser {
317+
type CreateUserContextParameters = {
318+
acceptInsecureCerts?: boolean;
319+
proxy?: Session.ProxyConfiguration;
314320
};
315321
}
316322
export declare namespace Browser {
@@ -1691,16 +1697,16 @@ export declare namespace Script {
16911697
};
16921698
}
16931699
export declare namespace Script {
1694-
type RegExpRemoteValue = {
1700+
type RegExpRemoteValue = Script.RegExpLocalValue & {
16951701
handle?: Script.Handle;
16961702
internalId?: Script.InternalId;
1697-
} & Script.RegExpLocalValue;
1703+
};
16981704
}
16991705
export declare namespace Script {
1700-
type DateRemoteValue = {
1706+
type DateRemoteValue = Script.DateLocalValue & {
17011707
handle?: Script.Handle;
17021708
internalId?: Script.InternalId;
1703-
} & Script.DateLocalValue;
1709+
};
17041710
}
17051711
export declare namespace Script {
17061712
type MapRemoteValue = {

out/gen/web-bluetooth.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ export declare namespace Bluetooth {
210210
| 'subscribe-to-notifications'
211211
| 'unsubscribe-from-notifications';
212212
code: number;
213+
data?: [...number[]];
213214
};
214215
}
215216
export declare namespace Bluetooth {
@@ -243,8 +244,12 @@ export declare namespace Bluetooth {
243244
descriptorUuid: Bluetooth.BluetoothUuid;
244245
type: 'read' | 'write';
245246
code: number;
247+
data?: [...number[]];
246248
};
247249
}
250+
export type BluetoothEvent =
251+
| Bluetooth.RequestDevicePromptUpdated
252+
| Bluetooth.GattConnectionAttempted;
248253
export declare namespace Bluetooth {
249254
type RequestDevicePromptUpdated = {
250255
method: 'bluetooth.requestDevicePromptUpdated';

src/gen/main.ts

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,13 @@ export namespace Browser {
312312
export namespace Browser {
313313
export type CreateUserContext = {
314314
method: 'browser.createUserContext';
315-
params: EmptyParams;
315+
params: Browser.CreateUserContextParameters;
316+
};
317+
}
318+
export namespace Browser {
319+
export type CreateUserContextParameters = {
320+
acceptInsecureCerts?: boolean;
321+
proxy?: Session.ProxyConfiguration;
316322
};
317323
}
318324
export namespace Browser {
@@ -1695,16 +1701,16 @@ export namespace Script {
16951701
};
16961702
}
16971703
export namespace Script {
1698-
export type RegExpRemoteValue = {
1704+
export type RegExpRemoteValue = Script.RegExpLocalValue & {
16991705
handle?: Script.Handle;
17001706
internalId?: Script.InternalId;
1701-
} & Script.RegExpLocalValue;
1707+
};
17021708
}
17031709
export namespace Script {
1704-
export type DateRemoteValue = {
1710+
export type DateRemoteValue = Script.DateLocalValue & {
17051711
handle?: Script.Handle;
17061712
internalId?: Script.InternalId;
1707-
} & Script.DateLocalValue;
1713+
};
17081714
}
17091715
export namespace Script {
17101716
export type MapRemoteValue = {

src/gen/web-bluetooth.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ export namespace Bluetooth {
210210
| 'subscribe-to-notifications'
211211
| 'unsubscribe-from-notifications';
212212
code: number;
213+
data?: [...number[]];
213214
};
214215
}
215216
export namespace Bluetooth {
@@ -243,8 +244,12 @@ export namespace Bluetooth {
243244
descriptorUuid: Bluetooth.BluetoothUuid;
244245
type: 'read' | 'write';
245246
code: number;
247+
data?: [...number[]];
246248
};
247249
}
250+
export type BluetoothEvent =
251+
| Bluetooth.RequestDevicePromptUpdated
252+
| Bluetooth.GattConnectionAttempted;
248253
export namespace Bluetooth {
249254
export type RequestDevicePromptUpdated = {
250255
method: 'bluetooth.requestDevicePromptUpdated';

0 commit comments

Comments
 (0)