refactor: update provider method signatures + cleanup

This commit is contained in:
jamesgeorge007
2024-02-29 19:53:38 +05:30
parent a729dfcacb
commit b19486ea03
3 changed files with 9 additions and 9 deletions

View File

@@ -49,11 +49,11 @@ export interface WorkspaceProvider {
createRESTRootCollection(
workspaceHandle: HandleRef<Workspace>,
newCollection: Partial<HoppCollection>
newCollection: Partial<Exclude<HoppCollection, "id">> & { name: string }
): Promise<E.Either<unknown, HandleRef<WorkspaceCollection>>>
createRESTChildCollection(
parentCollectionHandle: HandleRef<WorkspaceCollection>,
newChildCollection: Partial<HoppCollection>
newChildCollection: Partial<HoppCollection> & { name: string }
): Promise<E.Either<unknown, HandleRef<WorkspaceCollection>>>
updateRESTCollection(
collectionHandle: HandleRef<WorkspaceCollection>,