add condition config to types
This commit is contained in:
@@ -2,9 +2,13 @@ import type { SectionAliasConditionConfig } from './section-alias.condition.js';
|
||||
import type { SwitchConditionConfig } from './switch.condition.js';
|
||||
import type { WorkspaceAliasConditionConfig } from '@umbraco-cms/backoffice/workspace';
|
||||
import type { UmbConditionConfigBase } from '@umbraco-cms/backoffice/extension-api';
|
||||
import type { UserPermissionConditionConfig } from '@umbraco-cms/backoffice/current-user';
|
||||
|
||||
/* TODO: in theory should't the core package import from other packages.
|
||||
Are there any other way we can do this? */
|
||||
export type ConditionTypes =
|
||||
| SectionAliasConditionConfig
|
||||
| WorkspaceAliasConditionConfig
|
||||
| SwitchConditionConfig
|
||||
| UserPermissionConditionConfig
|
||||
| UmbConditionConfigBase;
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
export * from './user-permission.condition.js';
|
||||
@@ -1,2 +1,3 @@
|
||||
// TODO:Do not export store, but instead export future repository
|
||||
export * from './current-user-history.store.js';
|
||||
export * from './conditions/index.js';
|
||||
|
||||
Reference in New Issue
Block a user