Fix TS issues

This commit is contained in:
Joshen Lim committed 2025-06-24 14:09:07 +08:00
1 parent 716ba1bacf
commit 516e8eebc7
3 files changed
+3 -3

No files matched your search

@@ -106,7 +106,7 @@ export const EditBranchModal = ({ branch, visible, onClose }: EditBranchModalPro
if (val.gitBranchName && val.gitBranchName.length > 0 && githubConnection?.id) {
try {
await checkGithubBranchValidity({
connectionId: githubConnection.id,
repositoryId: githubConnection.id,
branchName: val.gitBranchName,
})
setIsGitBranchValid(true)
@@ -19,7 +19,7 @@ export async function getGitHubBranches(
})
if (error) handleError(error)
return data as Record<string, never>[]
return data
}
export type GitHubBranchesData = Awaited<ReturnType<typeof getGitHubBranches>>
@@ -259,7 +259,7 @@ export type IntegrationConnectionsCreateVariables = {
export type GitHubConnectionCreateVariables = {
organizationId: number
connection: components['schemas']['CreateGitHubConnectionsBody']
connection: components['schemas']['CreateGitHubConnectionBody']
}
export type EnvironmentTargets = 'production' | 'preview' | 'development'