improve(plugin): types

This commit is contained in:
charlie
2021-06-29 18:01:10 +08:00
parent 71c3b6fca1
commit d4c7a8a3b0
2 changed files with 2 additions and 2 deletions

View File

@@ -184,7 +184,7 @@ export interface IAppProxy {
setZoomFactor: (factor: number) => void
registerUIItem: (
type: 'toolbar' | 'page',
type: 'toolbar' | 'pagebar',
opts: { key: string, template: string }
) => boolean

View File

@@ -27,7 +27,7 @@ const debug = Debug('LSPlugin:user')
const app: Partial<IAppProxy> = {
registerUIItem (
type: 'toolbar' | 'page',
type: 'toolbar' | 'pagebar',
opts: { key: string, template: string }
) {
const pid = this.baseInfo.id