improve(plugin): types

This commit is contained in:
charlie
2021-08-25 09:39:18 +08:00
parent 94c3857da4
commit f2b2552a6c
4 changed files with 25 additions and 5 deletions

View File

@@ -10,7 +10,9 @@ import {
BlockCommandCallback,
StyleString,
ThemeOptions,
UIOptions, IHookEvent, BlockIdentity, BlockPageName
UIOptions, IHookEvent, BlockIdentity,
BlockPageName,
UIFrameAttrs
} from './LSPlugin'
import Debug from 'debug'
import * as CSS from 'csstype'
@@ -299,7 +301,7 @@ export class LSPluginUser extends EventEmitter<LSPluginUserEvents> implements IL
// TODO: update associated baseInfo settings
}
setMainUIAttrs (attrs: Record<string, any>): void {
setMainUIAttrs (attrs: Partial<UIFrameAttrs>): void {
this.caller.call('main-ui:attrs', attrs)
}