Fix TypeScript errors in nostr-git-support branch

- Fix duplicate useState import in GitManagementDialog
- Add missing hostTokens property to GitSettings in all test files
- Fix type narrowing issues in PullRequestDialog with proper type assertions
- Fix fetch headers to use Record<string, string> type
- Fix credentials type to GitCredential | undefined instead of null
- Fix auth callback to handle undefined credentials
- Fix patchLines array type annotation
- Fix git statusMatrix workdir type assertions
- All TypeScript compilation errors resolved
This commit is contained in:
shakespeare.diy committed 2025-10-15 01:29:04 -05:00
1 parent 865a7b83b8
commit 6ec4f7319c
6 files changed
+25 -17

No files matched your search

+1 -2
View File
@@ -1,4 +1,4 @@
import { useState } from 'react';
import { useState, useEffect } from 'react';
import {
Dialog,
DialogContent,
@@ -20,7 +20,6 @@ import { DiffViewer } from './DiffViewer';
import { PullRequestForm } from './PullRequestForm';
import { useGitStatus } from '@/hooks/useGitStatus';
import { useGit } from '@/hooks/useGit';
import { useState, useEffect } from 'react';
interface GitManagementDialogProps {
projectId: string;