fix: cf is very annoying

This commit is contained in:
2026-02-20 19:13:06 +10:30
parent 2faef2ae8d
commit 01f5e8f61d
2 changed files with 6 additions and 3 deletions
+4 -2
View File
@@ -14,7 +14,8 @@ function reloadSeqtaPages() {
result.then(open, console.error);
}
type MessageSender = (_?: unknown) => void;
/** Callback for sending a response back to the message sender */
type MessageSender = { (response?: unknown): void };
function handleFetchThemes(request: any, sendResponse: MessageSender): boolean {
const { token } = request;
@@ -166,7 +167,8 @@ function handleCloudFavorite(request: any, sendResponse: MessageSender): boolean
return true;
}
type MessageHandler = (_req: any, _res: MessageSender) => boolean | void;
/** Handler for a message type; receives request and sendResponse callback */
type MessageHandler = { (request: any, sendResponse: MessageSender): boolean | void };
const MESSAGE_HANDLERS: Record<string, MessageHandler> = {
reloadTabs: () => reloadSeqtaPages(),
+2 -1
View File
@@ -24,7 +24,8 @@ export type CloudAuthState = {
user: CloudUser | null;
};
type Listener = (_: CloudAuthState) => void;
/** Callback invoked when auth state changes */
type Listener = { (state: CloudAuthState): void };
class CloudAuthService {
private static instance: CloudAuthService;