specify type

This commit is contained in:
Mads Rasmussen
2024-01-08 18:51:23 +01:00
parent 442f095d7b
commit efa5d2097d
3 changed files with 4 additions and 4 deletions

View File

@@ -16,8 +16,8 @@ export class UmbPartialViewTreeRepository
}
async requestTreeRoot() {
const data = {
path: null,
const data: UmbPartialViewTreeRootModel = {
unique: null,
entityType: UMB_PARTIAL_VIEW_ROOT_ENTITY_TYPE,
name: 'Partial Views',
icon: 'icon-folder',

View File

@@ -14,7 +14,7 @@ export class UmbStylesheetTreeRepository extends UmbTreeRepositoryBase<
}
async requestTreeRoot() {
const data = {
const data: UmbStylesheetTreeRootModel = {
unique: null,
entityType: UMB_STYLESHEET_ROOT_ENTITY_TYPE,
name: 'Stylesheets',

View File

@@ -15,7 +15,7 @@ export class UmbTemplateTreeRepository
}
async requestTreeRoot() {
const data = {
const data: UmbTemplateTreeRootModel = {
id: null,
entityType: UMB_TEMPLATE_ROOT_ENTITY_TYPE,
name: 'Templates',