From f35164ebc8ff737fe89ca5ebab74a9e7470c9897 Mon Sep 17 00:00:00 2001 From: murashit Date: Sat, 23 May 2026 04:47:03 +0900 Subject: [PATCH] Fix consistent-type-definitions lint --- src/approvals/permission-details.ts | 5 ++++- src/display/review.ts | 5 ++++- tests/mocks/obsidian.ts | 4 ++-- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/approvals/permission-details.ts b/src/approvals/permission-details.ts index 41a73817..167084c2 100644 --- a/src/approvals/permission-details.ts +++ b/src/approvals/permission-details.ts @@ -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; diff --git a/src/display/review.ts b/src/display/review.ts index 1b85f771..347743a8 100644 --- a/src/display/review.ts +++ b/src/display/review.ts @@ -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); diff --git a/tests/mocks/obsidian.ts b/tests/mocks/obsidian.ts index b371ee9f..38dde3f0 100644 --- a/tests/mocks/obsidian.ts +++ b/tests/mocks/obsidian.ts @@ -1,8 +1,8 @@ -type ElementOptions = { +interface ElementOptions { cls?: string | string[]; text?: string; attr?: Record; -}; +} declare global { interface HTMLElement {