mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-06 00:27:24 +00:00
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:
1 parent
865a7b83b8
commit
6ec4f7319c
6 files changed
+25
-17
No files matched your search
@@ -306,6 +306,7 @@ describe('Git', () => {
|
||||
const { readGitSettings } = await import('./configUtils');
|
||||
vi.mocked(readGitSettings).mockResolvedValue({
|
||||
credentials: {},
|
||||
hostTokens: {},
|
||||
coAuthorEnabled: true,
|
||||
});
|
||||
|
||||
@@ -333,6 +334,7 @@ describe('Git', () => {
|
||||
const { readGitSettings } = await import('./configUtils');
|
||||
vi.mocked(readGitSettings).mockResolvedValue({
|
||||
credentials: {},
|
||||
hostTokens: {},
|
||||
name: 'John Doe',
|
||||
email: '[email protected]',
|
||||
coAuthorEnabled: true,
|
||||
@@ -362,6 +364,7 @@ describe('Git', () => {
|
||||
const { readGitSettings } = await import('./configUtils');
|
||||
vi.mocked(readGitSettings).mockResolvedValue({
|
||||
credentials: {},
|
||||
hostTokens: {},
|
||||
name: 'John Doe',
|
||||
email: '[email protected]',
|
||||
coAuthorEnabled: false,
|
||||
@@ -391,6 +394,7 @@ describe('Git', () => {
|
||||
const { readGitSettings } = await import('./configUtils');
|
||||
vi.mocked(readGitSettings).mockResolvedValue({
|
||||
credentials: {},
|
||||
hostTokens: {},
|
||||
name: 'John Doe',
|
||||
email: '[email protected]',
|
||||
coAuthorEnabled: true,
|
||||
|
||||
Reference in new issue
Block a user