mirror of
https://github.com/murashit/codex-panel.git
synced 2026-07-22 06:57:10 +00:00
Fix consistent-type-definitions lint
This commit is contained in:
parent
ccd06c234a
commit
f35164ebc8
3 changed files with 10 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
type ElementOptions = {
|
||||
interface ElementOptions {
|
||||
cls?: string | string[];
|
||||
text?: string;
|
||||
attr?: Record<string, string>;
|
||||
};
|
||||
}
|
||||
|
||||
declare global {
|
||||
interface HTMLElement {
|
||||
|
|
|
|||
Loading…
Reference in a new issue