chore: standardize tsconfig (#9568)

This commit is contained in:
forehalo
2025-01-08 04:07:56 +00:00
parent 39f4b17315
commit c0ed74dfed
151 changed files with 1041 additions and 1566 deletions

View File

@@ -6,7 +6,7 @@ import type {
events as mainEvents,
handlers as mainHandlers,
} from '@affine/electron/main/exposed';
import type { appInfo as exposedAppInfo } from '@affine/electron/preload/electron-api';
import type { AppInfo } from '@affine/electron/preload/electron-api';
import type { SharedStorage } from '@affine/electron/preload/shared-storage';
type MainHandlers = typeof mainHandlers;
@@ -29,9 +29,7 @@ export type ClientHandler = {
} & HelperHandlers;
export type ClientEvents = MainEvents & HelperEvents;
export const appInfo = (globalThis as any).__appInfo as
| typeof exposedAppInfo
| null;
export const appInfo = (globalThis as any).__appInfo as AppInfo | null;
export const apis = (globalThis as any).__apis as ClientHandler | undefined;
export const events = (globalThis as any).__events as ClientEvents | undefined;
@@ -39,7 +37,7 @@ export const sharedStorage = (globalThis as any).__sharedStorage as
| SharedStorage
| undefined;
export type { SharedStorage };
export type { AppInfo, SharedStorage };
export {
type SpellCheckStateSchema,
@@ -49,3 +47,7 @@ export {
type WorkbenchViewModule,
} from '@affine/electron/main/shared-state-schema';
export type { UpdateMeta } from '@affine/electron/main/updater/event';
export type {
AddTabOption,
TabAction,
} from '@affine/electron/main/windows-manager';