chore(lint): convert type aliases to interfaces (autofix)

- Remove no-use-before-define rule (conflicts with unistyles ordering)
- Add typescript/consistent-type-definitions: interface
- Run oxlint --fix: 606 type->interface conversions across 268 files

Typecheck green. Warnings: 5432 -> 3787 (-1645).
This commit is contained in:
Mohamed Boudra
2026-04-23 22:59:49 +07:00
parent 7aaca4ec8d
commit 106249c632
268 changed files with 1247 additions and 1196 deletions
@@ -54,11 +54,11 @@ export interface StopLocalDaemonResult {
message: string;
}
type ProcessExitDetails = {
interface ProcessExitDetails {
code: number | null;
signal: NodeJS.Signals | null;
error?: Error;
};
}
type DetachedStartupResult = { exitedEarly: false } | ({ exitedEarly: true } & ProcessExitDetails);
+2 -2
View File
@@ -44,9 +44,9 @@ interface StatusRow {
value: string;
}
type CliPackageJson = {
interface CliPackageJson {
version?: unknown;
};
}
const require = createRequire(import.meta.url);
+2 -2
View File
@@ -165,10 +165,10 @@ async function resolveVoiceSelection(mode: OnboardOptions["voice"]): Promise<boo
return answer;
}
type DownloadProgress = {
interface DownloadProgress {
modelId: string | null;
pct: number | null;
};
}
function parseDownloadProgress(logTail: string): DownloadProgress | null {
const lines = logTail.split("\n").filter(Boolean);
+2 -2
View File
@@ -1,9 +1,9 @@
import type { AgentTimelineItem, DaemonClient } from "@getpaseo/server";
type FetchProjectedTimelineItemsInput = {
interface FetchProjectedTimelineItemsInput {
client: DaemonClient;
agentId: string;
};
}
export async function fetchProjectedTimelineItems(
input: FetchProjectedTimelineItemsInput,
+2 -2
View File
@@ -2,9 +2,9 @@ import { createRequire } from "node:module";
const require = createRequire(import.meta.url);
type CliPackageJson = {
interface CliPackageJson {
version?: unknown;
};
}
export function resolveCliVersion(): string {
const packageJson = require("../package.json") as CliPackageJson;