add type and remove tsignore

This commit is contained in:
Mads Rasmussen
2024-06-26 13:08:42 +02:00
parent dbf8c8deed
commit d8c18dab42

View File

@@ -1,13 +1,15 @@
import { UmbPickerInputContext } from '@umbraco-cms/backoffice/picker-input';
import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
import { UMB_PARTIAL_VIEW_ITEM_REPOSITORY_ALIAS } from '../../repository/item/index.js';
import { UMB_PARTIAL_VIEW_PICKER_MODAL } from '../../partial-view-picker/index.js';
import type { UmbPartialViewItemModel } from '../../types.js';
import { UmbPickerInputContext } from '@umbraco-cms/backoffice/picker-input';
import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
import type { UmbPartialViewTreeItemModel } from '../../tree/types.js';
export class UmbPartialViewPickerContext extends UmbPickerInputContext<UmbPartialViewItemModel> {
export class UmbPartialViewPickerContext extends UmbPickerInputContext<
UmbPartialViewItemModel,
UmbPartialViewTreeItemModel
> {
constructor(host: UmbControllerHost) {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
super(host, UMB_PARTIAL_VIEW_ITEM_REPOSITORY_ALIAS, UMB_PARTIAL_VIEW_PICKER_MODAL);
}
}