one more commit
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { UmbEntityWorkspaceContextInterface } from '../../../src/backoffice/shared/components/workspace/workspace-context/workspace-entity-context.interface';
|
||||
import { UmbEntityWorkspaceContextInterface } from '../../workspace/context/workspace-entity-context.interface';
|
||||
import { UmbContextToken } from './context-token';
|
||||
import type { BaseEntity } from '@umbraco-cms/backoffice/models';
|
||||
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
export * from './workspace-context.interface';
|
||||
export * from './workspace-entity-context.interface';
|
||||
|
||||
@@ -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>;
|
||||
}
|
||||
Reference in New Issue
Block a user