Fix consistent-type-definitions lint

This commit is contained in:
murashit 2026-05-23 04:47:03 +09:00
parent ccd06c234a
commit f35164ebc8
3 changed files with 10 additions and 4 deletions

View file

@ -1,6 +1,9 @@
import { jsonPreview } from "../utils";
export type DetailRow = { key: string; value: string };
export interface DetailRow {
key: string;
value: string;
}
export function permissionRows(value: unknown): DetailRow[] {
const permissions = value as { network?: { enabled?: unknown } | null; fileSystem?: unknown } | null;

View file

@ -7,7 +7,10 @@ import { pathsRelativeToRoot } from "./paths";
import { classifyExecutionState } from "./state";
type AutoReviewNotification = ItemGuardianApprovalReviewStartedNotification | ItemGuardianApprovalReviewCompletedNotification;
type DisplayRow = { key: string; value: string };
interface DisplayRow {
key: string;
value: string;
}
export function createReviewResultItem(text: string): DisplayItem {
const parsed = parseAutomaticApprovalReviewMessage(text);

View file

@ -1,8 +1,8 @@
type ElementOptions = {
interface ElementOptions {
cls?: string | string[];
text?: string;
attr?: Record<string, string>;
};
}
declare global {
interface HTMLElement {