tb-apps-sdk
Advanced tools
Comparing version 0.6.0-alpha.4 to 0.6.0-alpha.5
@@ -6,3 +6,6 @@ import { IFactory } from './base'; | ||
openDetail(type: 'task' | 'date' | 'file' | 'post' | 'bookkeeping', ...params: any[]): Promise<void>; | ||
openDashboardModal(...params: any[]): Promise<void>; | ||
closeFloat(): Promise<void>; | ||
transferStyleNode(...params: any[]): Promise<void>; | ||
} | ||
export declare const hostAPI: IFactory<DashboardAPI>; |
@@ -7,4 +7,6 @@ export declare type IframeMessageType = { | ||
toOrigin?: string; | ||
onSuccess?(): void; | ||
onError?({error: any}): void; | ||
}; | ||
export declare const notify: (args: any) => void; | ||
export declare const callService: ({ isCI, toOrigin, ...data }: IframeMessageType) => void; |
{ | ||
"name": "tb-apps-sdk", | ||
"version": "0.6.0-alpha.4", | ||
"version": "0.6.0-alpha.5", | ||
"description": "A sdk for communications between teambiton web and other envs.", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
@@ -94,2 +94,4 @@ # tb-apps-sdk | ||
| toOrigin | 反向通讯的地址 | string | / | | ||
| onSuccess | 执行成功后的回调 | () => void | / | | ||
| onError | 执行失败后的回调 | ({ error }) => void | / | | ||
@@ -96,0 +98,0 @@ ##### `Class: AppSDK` |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
28029
419
111