Skip to content

Commit 14c8515

Browse files
authored
🤖 Merge PR DefinitelyTyped#72503 fix: add missing param by @xhwgood
1 parent 69ff06a commit 14c8515

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

types/zwjsbridge/index.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,9 @@ interface ZWJSBridge {
7070

7171
/**
7272
* 获取单点的路过的票据
73+
* @param options 必须传空对象,否则获取的 ticketId 无效
7374
*/
74-
ssoTicket(): Promise<{
75+
ssoTicket(options: Record<string, never>): Promise<{
7576
/** 是否支持获取 */
7677
result: boolean;
7778
/** 票据,可通过此票据获取用户信息 */

types/zwjsbridge/zwjsbridge-tests.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
(async () => {
22
ZWJSBridge.onReady(() => {
3-
ZWJSBridge.ssoTicket();
3+
ZWJSBridge.ssoTicket({});
44

55
ZWJSBridge.setLocalStorage({
66
key: "key",

0 commit comments

Comments
 (0)