chore(workspaces): fix types
This commit is contained in:
Родитель
925eb0c982
Коммит
ecf9234bdf
|
@ -44,7 +44,7 @@ export type DeleteWorkspaceDomain = (args: { id: string }) => Promise<void>
|
|||
|
||||
export type GetWorkspaceWithDomains = (args: {
|
||||
id: string
|
||||
}) => Promise<Workspace | null>
|
||||
}) => Promise<(Workspace & { domains: WorkspaceDomain[] }) | null>
|
||||
|
||||
export type DeleteWorkspace = (args: DeleteWorkspaceArgs) => Promise<void>
|
||||
|
||||
|
|
|
@ -267,5 +267,5 @@ export const getWorkspaceWithDomainsFactory =
|
|||
domains: workspace.domains.filter(
|
||||
(domain: WorkspaceDomain | null) => domain !== null
|
||||
)
|
||||
} as Workspace
|
||||
} as Workspace & { domains: WorkspaceDomain[] }
|
||||
}
|
||||
|
|
|
@ -7,7 +7,8 @@ import {
|
|||
QueryAllWorkspaceProjects,
|
||||
UpsertWorkspace,
|
||||
UpsertWorkspaceRole,
|
||||
GetWorkspaceWithDomains
|
||||
GetWorkspaceWithDomains,
|
||||
GetWorkspaceDomains
|
||||
} from '@/modules/workspaces/domain/operations'
|
||||
import {
|
||||
Workspace,
|
||||
|
|
Загрузка…
Ссылка в новой задаче