Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jul 26, 2021. It is now read-only.

Commit 2812a7d

Browse files
committed
feat: 更新registerHandler方法types
1 parent e3bba5d commit 2812a7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎types/index.d.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export interface pluginOption<P = any, R = any> {
2828
export class VueJsBridgePlugin {
2929
constructor (options: pluginOption)
3030
private init (callback: (bridge: Bridge) => void)
31-
public registerHandler<Q> (name: string, fn: (request:Q) => void): void
31+
public registerHandler<D,P=any> (name: string, fn: (data:D,callback:(payload?:P)=>void) => void): void
3232
public callHandler<P, R> (payload: P): Promise<R>
3333
}
3434

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /