From 7f8567b29486b0e365c36670618da591d35d75d2 Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Wed, 28 Jun 2023 11:25:16 +0400 Subject: [PATCH] Update PageManager TS --- src/pages/index.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/pages/index.ts b/src/pages/index.ts index 7b13cea57..0c5e3671d 100644 --- a/src/pages/index.ts +++ b/src/pages/index.ts @@ -49,7 +49,7 @@ import { createId } from '../utils/mixins'; import { ModuleModel } from '../abstract'; import { ItemManagerModule, ModuleConfig } from '../abstract/Module'; import Pages from './model/Pages'; -import Page from './model/Page'; +import Page, { PageProperties } from './model/Page'; import EditorModel from '../editor/model/Editor'; import ComponentWrapper from '../dom_components/model/ComponentWrapper'; import { AddOptions, RemoveOptions, SetOptions } from '../common'; @@ -171,10 +171,7 @@ export default class PageManager extends ItemManagerModuleMy element', // or a JSON of components * }); */ - add( - props: any, //{ id?: string; styles: string; component: string }, - opts: AddOptions & SelectOption & AbortOption = {} - ) { + add(props: PageProperties, opts: AddOptions & SelectOption & AbortOption = {}) { const { em } = this; props.id = props.id || this._createId(); const add = () => {