Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
BrettCleary committed Oct 26, 2023
1 parent f0ce059 commit 68894b9
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 39 deletions.
10 changes: 5 additions & 5 deletions src/backend/__mocks__/@rudderstack/rudder-sdk-node.ts
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 {}
2 changes: 1 addition & 1 deletion src/backend/hyperplay-proxy-server
28 changes: 14 additions & 14 deletions src/backend/utils/ipc_renderer_helper.ts
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)
}
}
}
38 changes: 19 additions & 19 deletions src/common/state/interfaces.ts
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
}

0 comments on commit 68894b9

Please sign in to comment.