Skip to content

Commit

Permalink
feat(essage): 更新 essage 接口定义
Browse files Browse the repository at this point in the history
  • Loading branch information
靳昌 committed Mar 28, 2019
1 parent 397dc6a commit 9e47b14
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/api/dashboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { APIBase, factory, IFactory } from './base'
export interface DashboardAPI {
registerHostNode(): Promise<HTMLElement>
setReady(): Promise<void>
essage(type: 'show' | 'error' | 'log' | 'success' | 'warning', ...params: any[]): Promise<void>
essage(type: 'error' | 'info' | 'open' | 'success'| 'warning', ...params: any[]): Promise<void>
openDetail(type: 'task' | 'event' | 'work' | 'post' | 'entry' | 'collection', ...params: any[]): Promise<void>
openDashboardModal(...params: any[]): Promise<void>
closeFloat(): Promise<void>
Expand Down
2 changes: 1 addition & 1 deletion src/api/internal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { APIBase, factory, IFactory } from './base'

export interface InternalAPI {
registerHostNode(): Promise<HTMLElement>
essage(type: 'show' | 'error' | 'log' | 'success' | 'warning', ...params: any[]): Promise<void>
essage(type: 'error' | 'info' | 'open' | 'success'| 'warning', ...params: any[]): Promise<void>
openDetail(type: 'task' | 'date' | 'file' | 'post' | 'bookkeeping', ...params: any[]): Promise<void>
}

Expand Down
2 changes: 1 addition & 1 deletion src/api/org-structure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { APIBase, factory, IFactory } from './base'

export interface OrgStructureAPI {
start(...params: any[]): Promise<void>
essage(type: 'show' | 'error' | 'log' | 'success' | 'warning', ...params: any[]): Promise<void>
essage(type: 'error' | 'info' | 'open' | 'success'| 'warning', ...params: any[]): Promise<void>
finish(...params: any[]): Promise<void>
openChatWindow(...params: any[]): Promise<void>
navigate(...params: any[]): Promise<void>
Expand Down
2 changes: 1 addition & 1 deletion src/api/report-app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { APIBase, factory, IFactory } from './base'

export interface ReportAppAPI {
start(...params: any[]): Promise<void>
essage(type: 'show' | 'error' | 'log' | 'success' | 'warning', ...params: any[]): Promise<void>
essage(type: 'error' | 'info' | 'open' | 'success'| 'warning', ...params: any[]): Promise<void>
finish(...params: any[]): Promise<void>
requestLeavingLock(): Promise<void>
releaseLeavingLock(): Promise<void>
Expand Down

0 comments on commit 9e47b14

Please sign in to comment.