Skip to content

Commit 3947113

Browse files
committed
test: update in-page channel API snapshot
1 parent 1c06428 commit 3947113

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

tests/__snapshots__/tsnapi/devframe/in-page-channel.snapshot.d.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,17 @@
22
* Generated by tsnapi — public API snapshot of `devframe/in-page-channel`
33
*/
44
// #region Interfaces
5-
export interface ConnectPanelChannelOptions extends InPageChannelCommonOptions {
5+
export interface ConnectPanelChannelOptions<Protocol extends InPageChannelProtocol = InPageChannelProtocol> extends InPageChannelCommonOptions {
6+
functions: ConnectPanelChannelOptionsFunctions<Protocol>;
67
window?: Window | false;
78
targets?: Window[];
89
transport?: MessagePort;
910
instanceId?: string;
1011
helloIntervalMs?: number;
1112
eventBufferLimit?: number;
1213
}
13-
export interface CreatePageScriptChannelOptions extends InPageChannelCommonOptions {
14+
export interface CreatePageScriptChannelOptions<Protocol extends InPageChannelProtocol = InPageChannelProtocol> extends InPageChannelCommonOptions {
15+
functions: CreatePageScriptChannelOptionsFunctions<Protocol>;
1416
window?: Window | false;
1517
}
1618
export interface InPageChannelProtocol {
@@ -84,7 +86,7 @@ export declare class InPageChannelError extends Error {
8486
// #endregion
8587

8688
// #region Functions
87-
export declare function connectPanelChannel<P extends InPageChannelProtocol>(_: ConnectPanelChannelOptions): PanelChannel<P>;
88-
export declare function createPageScriptChannel<P extends InPageChannelProtocol>(_: CreatePageScriptChannelOptions): PageScriptChannel<P>;
89+
export declare function connectPanelChannel<P extends InPageChannelProtocol>(_: ConnectPanelChannelOptions<P>): PanelChannel<P>;
90+
export declare function createPageScriptChannel<P extends InPageChannelProtocol>(_: CreatePageScriptChannelOptions<P>): PageScriptChannel<P>;
8991
export declare function defineChannelFunction<NAME extends string, TYPE extends InPageFunctionType, ARGS extends any[], RETURN = void, const AS extends RpcArgsSchema | undefined = undefined, const RS extends RpcReturnSchema | undefined = undefined>(_: InPageFunctionDefinition<NAME, TYPE, ARGS, RETURN, AS, RS>): InPageFunctionDefinition<NAME, TYPE, ARGS, RETURN, AS, RS>;
9092
// #endregion

0 commit comments

Comments
 (0)