-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f0ce059
commit 68894b9
Showing
4 changed files
with
39 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
export default class Analytics { | ||
constructor(...args: any[]) {} | ||
} | ||
|
||
export interface apiObject {} | ||
export default class Analytics { | ||
constructor(...args: any[]) {} | ||
} | ||
|
||
export interface apiObject {} |
Submodule hyperplay-proxy-server
updated
from 2d0c7b to 91c189
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
import { WrapRendererCallback } from 'common/types' | ||
import { ipcRenderer } from 'electron' | ||
|
||
export function getHandleFunction< | ||
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */ | ||
Handler extends WrapRendererCallback<(...args: any[]) => void> | ||
>(topic: string) { | ||
return (cb: Handler) => { | ||
ipcRenderer.on(topic, cb) | ||
return () => { | ||
ipcRenderer.removeListener(topic, cb) | ||
} | ||
} | ||
} | ||
import { WrapRendererCallback } from 'common/types' | ||
import { ipcRenderer } from 'electron' | ||
|
||
export function getHandleFunction< | ||
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */ | ||
Handler extends WrapRendererCallback<(...args: any[]) => void> | ||
>(topic: string) { | ||
return (cb: Handler) => { | ||
ipcRenderer.on(topic, cb) | ||
return () => { | ||
ipcRenderer.removeListener(topic, cb) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
import { OverlayRenderState } from 'common/types' | ||
import { Toast } from 'frontend/store/types' | ||
|
||
export interface ExtensionStateInterface { | ||
isPopupOpen: boolean | ||
isNotificationOpen: boolean | ||
} | ||
|
||
export interface TransactionStateInterface { | ||
isInitialToastShown: boolean | ||
latestToast: Toast | null | ||
} | ||
|
||
export interface OverlayStateInterface { | ||
renderState: OverlayRenderState | ||
showOverlay: boolean | null | ||
isFullscreenOverlay: boolean | ||
title: string | ||
} | ||
import { OverlayRenderState } from 'common/types' | ||
import { Toast } from 'frontend/store/types' | ||
|
||
export interface ExtensionStateInterface { | ||
isPopupOpen: boolean | ||
isNotificationOpen: boolean | ||
} | ||
|
||
export interface TransactionStateInterface { | ||
isInitialToastShown: boolean | ||
latestToast: Toast | null | ||
} | ||
|
||
export interface OverlayStateInterface { | ||
renderState: OverlayRenderState | ||
showOverlay: boolean | null | ||
isFullscreenOverlay: boolean | ||
title: string | ||
} |