diff --git a/js-framework/index.ts b/js-framework/index.ts index e05cc44b..8a5de55b 100644 --- a/js-framework/index.ts +++ b/js-framework/index.ts @@ -28,4 +28,4 @@ export * from './src/util/gravity' export * from './src/util/candies' export * from './src/vm/mvvm' export * from './src/runtime/global' -export * from './src/util/modal' +export * from './src/util/nativeModules' diff --git a/js-framework/src/util/modal.ts b/js-framework/src/util/nativeModules.ts similarity index 96% rename from js-framework/src/util/modal.ts rename to js-framework/src/util/nativeModules.ts index ec27dfdd..81f3851a 100644 --- a/js-framework/src/util/modal.ts +++ b/js-framework/src/util/nativeModules.ts @@ -55,7 +55,7 @@ export function modal(context: BridgeContext) { text?: string, defaultText?: string, }) => { - return context.modal.prompt(arg) + return context.modal.prompt(arg) as Promise }, } } \ No newline at end of file