Skip to content

Commit

Permalink
Merge pull request #15 from HyperPlay-Gaming/fix/hp_api_async
Browse files Browse the repository at this point in the history
[Fix] update overlay calls to be async
  • Loading branch information
BrettCleary authored Jun 13, 2024
2 parents 0c43695 + 7bc859e commit f7485ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hyperplay/utils",
"version": "0.0.13",
"version": "0.0.14",
"description": "",
"main": "index.js",
"scripts": {
Expand Down
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export async function wait(ms: number) {

export interface HyperPlayAPI {
backendEvents: EventEmitter
updatePopupInOverlay: (show: boolean) => void
updatePopupInOverlay: (show: boolean) => Promise<void>
logError: (msg: string) => void
logInfo: (msg: string) => void
extensionProvider: any
Expand All @@ -54,8 +54,8 @@ export interface HyperPlayAPI {
returnExtensionRequestEvents: EventEmitter
errorExtensionRequestEvents: EventEmitter
providerRequests: EventEmitter
toggleOverlay: (arg: { action?: OverlayAction }) => void
removePopup: () => void
toggleOverlay: (arg: { action?: OverlayAction }) => Promise<void>
removePopup: () => Promise<void>
getCurrentWeb3Provider: () => any
i18n: {
transactions: {
Expand Down

0 comments on commit f7485ae

Please sign in to comment.