Skip to content

Commit 3142bc4

Browse files
committed
Fix createBranchUniversalObject's TypeScript definition
createBranchUniversalObject is an async function, so it's TypeScript definition should be a function that returns `Promise<BranchUniversalObject>` instead of `BranchUniversalObject`.
1 parent 4fe1c39 commit 3142bc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ interface Branch {
309309
createBranchUniversalObject: (
310310
identifier: string,
311311
options: BranchUniversalObjectOptions
312-
) => BranchUniversalObject;
312+
) => Promise<BranchUniversalObject>;
313313
handleATTAuthorizationStatus: (
314314
ATTAuthorizationStatus:ATTAuthorizationStatus
315315
) => void

0 commit comments

Comments
 (0)