temp mock type
This commit is contained in:
@@ -1,11 +1,18 @@
|
||||
import type { UmbPagedModel } from '../../../repository/types.js';
|
||||
import type { UmbContentTypeStructureDataSource } from './content-type-structure-data-source.interface.js';
|
||||
import type { AllowedContentTypeModel, ItemResponseModelBaseModel } from '@umbraco-cms/backoffice/external/backend-api';
|
||||
import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
|
||||
import { tryExecuteAndNotify } from '@umbraco-cms/backoffice/resources';
|
||||
|
||||
// Temp type
|
||||
type AllowedContentTypeModel = {
|
||||
id: string;
|
||||
name: string;
|
||||
description?: string | null;
|
||||
icon?: string | null;
|
||||
};
|
||||
|
||||
export interface UmbContentTypeStructureServerDataSourceBaseArgs<
|
||||
ServerItemType extends ItemResponseModelBaseModel,
|
||||
ServerItemType extends AllowedContentTypeModel,
|
||||
ClientItemType extends { unique: string },
|
||||
> {
|
||||
getAllowedChildrenOf: (unique: string | null) => Promise<UmbPagedModel<ServerItemType>>;
|
||||
|
||||
Reference in New Issue
Block a user