android&iOS:create context set this to undefined

This commit is contained in:
pengfei.zhou
2020-01-08 20:18:19 +08:00
committed by osborn
parent cdaebe46cd
commit 0087c5bda4
10 changed files with 67 additions and 5 deletions

20
doric-js/index.d.ts vendored
View File

@@ -64,6 +64,7 @@ declare module 'doric/lib/src/native/index.native' {
export * from 'doric/lib/src/native/storage';
export * from 'doric/lib/src/native/popover';
export * from 'doric/lib/src/native/animate';
export * from 'doric/lib/src/native/notification';
}
declare module 'doric/lib/src/util/index.util' {
@@ -792,6 +793,25 @@ declare module 'doric/lib/src/native/animate' {
}) => Promise<any>;
}
declare module 'doric/lib/src/native/notification' {
import { BridgeContext } from "doric/lib/src/runtime/global";
export function notification(context: BridgeContext): {
publish: (args: {
biz: string;
name: string;
data?: object | undefined;
androidSystem?: boolean | undefined;
}) => Promise<any>;
subscribe: (args: {
biz: string;
name: string;
callback: (data?: any) => void;
androidSystem?: boolean | undefined;
}) => Promise<string>;
unsubscribe: (subscribeId: string) => Promise<any>;
};
}
declare module 'doric/lib/src/util/color' {
import { Modeling } from "doric/lib/src/util/types";
/**