js:add lib and .d.ts
This commit is contained in:
24
doric-js/lib/src/native/modal.d.ts
vendored
Normal file
24
doric-js/lib/src/native/modal.d.ts
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
import { BridgeContext } from "../runtime/global";
|
||||
import { Gravity } from "../util/gravity";
|
||||
export declare function modal(context: BridgeContext): {
|
||||
toast: (msg: string, gravity?: Gravity) => void;
|
||||
alert: (arg: string | {
|
||||
title: string;
|
||||
msg: string;
|
||||
okLabel?: string | undefined;
|
||||
}) => Promise<any>;
|
||||
confirm: (arg: string | {
|
||||
title: string;
|
||||
msg: string;
|
||||
okLabel?: string | undefined;
|
||||
cancelLabel?: string | undefined;
|
||||
}) => Promise<any>;
|
||||
prompt: (arg: {
|
||||
title?: string | undefined;
|
||||
msg?: string | undefined;
|
||||
okLabel?: string | undefined;
|
||||
cancelLabel?: string | undefined;
|
||||
text?: string | undefined;
|
||||
defaultText?: string | undefined;
|
||||
}) => Promise<string>;
|
||||
};
|
||||
Reference in New Issue
Block a user