From 1bf56b71d53a7a2ef2f0780c7e9df1c4d037908f Mon Sep 17 00:00:00 2001 From: "pengfei.zhou" Date: Thu, 21 Nov 2019 15:51:18 +0800 Subject: [PATCH] feat:rename file --- js-framework/index.ts | 2 +- js-framework/src/util/{modal.ts => nativeModules.ts} | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename js-framework/src/util/{modal.ts => nativeModules.ts} (96%) 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