Browse Source

improve(plugin): types

charlie 4 years ago
parent
commit
d4c7a8a3b0
2 changed files with 2 additions and 2 deletions
  1. 1 1
      libs/src/LSPlugin.ts
  2. 1 1
      libs/src/LSPlugin.user.ts

+ 1 - 1
libs/src/LSPlugin.ts

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

+ 1 - 1
libs/src/LSPlugin.user.ts

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