js:add lib and .d.ts

This commit is contained in:
pengfei.zhou
2020-01-03 14:44:51 +08:00
committed by osborn
parent 624e90e4a8
commit 7cde16a75d
84 changed files with 3794 additions and 19 deletions

24
doric-js/lib/src/mock/driver.d.ts vendored Normal file
View File

@@ -0,0 +1,24 @@
import { Panel } from '../ui/panel';
import { View } from '../ui/view';
export interface Driver {
/**
* Create and destory page
*/
createPage(): Panel;
destoryPage(): Panel;
/**
* Page lifecycle
*/
dispatchOnCreate(): void;
dispatchOnDestory(): void;
dispatchOnShow(): void;
dispatchOnHidden(): void;
/**
* Page render
*/
dispatchBuild(): View;
}
export interface Responser {
constructor(): void;
respond(action: string, extra: any): void;
}

View File