mirror of
https://github.com/getpaseo/paseo.git
synced 2026-11-11 10:57:07 +00:00
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:
@@ -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);
|
||||
|
||||
|
||||
@@ -44,9 +44,9 @@ interface StatusRow {
|
||||
value: string;
|
||||
}
|
||||
|
||||
type CliPackageJson = {
|
||||
interface CliPackageJson {
|
||||
version?: unknown;
|
||||
};
|
||||
}
|
||||
|
||||
const require = createRequire(import.meta.url);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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,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;
|
||||
|
||||
Reference in New Issue
Block a user