one more commit

This commit is contained in:
Niels Lyngsø
2023-03-30 09:59:19 +02:00
parent d4d808767b
commit 17eeb40e91
17 changed files with 13 additions and 16 deletions

View File

@@ -1 +1,2 @@
export * from './workspace-context.interface';
export * from './workspace-entity-context.interface';

View File

@@ -0,0 +1,9 @@
import type { UmbWorkspaceContextInterface } from '@umbraco-cms/backoffice/workspace';
export interface UmbEntityWorkspaceContextInterface<EntityType = unknown>
extends UmbWorkspaceContextInterface<EntityType> {
getEntityKey(): string | undefined; // COnsider if this should go away now that we have getUnique()
getEntityType(): string; // TODO: consider of this should be on the repository because a repo is responsible for one entity type
//getData(): EntityType | undefined;
save(): Promise<void>;
}