Skip to content

Commit 18b0ed6

Browse files
Apply suggested fix to Frontend/src/scripts/features/branches.ts from Copilot Autofix
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
1 parent 3e1aa15 commit 18b0ed6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Frontend/src/scripts/features/branches.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ import type { ConflictDetails, FileStatus } from '../types';
1818
import { openConflictsSummary } from './conflicts';
1919
import { getPluginContextMenuItems, runHook, runPluginAction } from '../plugins';
2020

21-
type Branch = { name: string; full_ref?: string; current?: boolean; kind?: { type?: string; remote?: string } };
21+
type BranchKind = { type?: string; remote?: string };
22+
type Branch = { name: string; full_ref?: string; current?: boolean; kind?: BranchKind };
2223

2324
const branchBtn = qs<HTMLButtonElement>('#branch-switch');
2425
const branchName = qs<HTMLElement>('#branch-name');

0 commit comments

Comments
 (0)