Switch to double quotes and reformat codebase with Biome
This commit is contained in:
@@ -8,7 +8,7 @@ type EventEnvelope = {
|
||||
|
||||
export async function listenToDesktopEvent<TPayload>(
|
||||
event: string,
|
||||
handler: (payload: TPayload) => void
|
||||
handler: (payload: TPayload) => void,
|
||||
): Promise<DesktopEventUnlisten> {
|
||||
const listen = getDesktopHost()?.events?.on;
|
||||
if (typeof listen !== "function") {
|
||||
|
||||
@@ -2,7 +2,7 @@ import { getDesktopHost } from "@/desktop/host";
|
||||
|
||||
export async function invokeDesktopCommand<T>(
|
||||
command: string,
|
||||
args?: Record<string, unknown>
|
||||
args?: Record<string, unknown>,
|
||||
): Promise<T> {
|
||||
const invoke = getDesktopHost()?.invoke;
|
||||
if (typeof invoke !== "function") {
|
||||
|
||||
Reference in New Issue
Block a user