diff --git a/uni_modules/uts-helloworld/utssdk/app-android/index.uts b/uni_modules/uts-helloworld/utssdk/app-android/index.uts index 309463adbd3be1093e998af00480d6cf84e94b9a..e6681005d445c88f8b0906905bb227553578ce4f 100644 --- a/uni_modules/uts-helloworld/utssdk/app-android/index.uts +++ b/uni_modules/uts-helloworld/utssdk/app-android/index.uts @@ -1,14 +1,14 @@ type inputJSON = { - inputText:string, - errCode:number + inputText: string, + errCode: number } type JsonParamOptions = { - input:inputJSON; - success: (res: string) => void; - fail: (res: string) => void; - complete: (res: string) => void; + input: inputJSON; + success: (res: string) => void; + fail: (res: string) => void; + complete: (res: string) => void; }; @@ -16,24 +16,22 @@ type JsonParamOptions = { * 导出一个带callback的同步方法 * @param opts */ -export function callWithoutParam(success:() => void) { - success(); - console.log("hello ","at uniModule/a/b.js line 67"); - return { name: "doSthWithCallback" }; +export function callWithoutParam(success: () => void) { + success(); + return { name: "doSthWithCallback" }; } - -export function callWithStringParam(input:string,success: (res: string) => void) { - success(input); - return { name: "doSthWithCallback" }; + +export function callWithStringParam(input: string, success: (res: string) => void) { + success(input); + return { name: "doSthWithCallback" }; } export function callWithJSONParam(opts: JsonParamOptions) { opts.input.errCode = 10; opts.success(opts.input); - - return { name: "doSthWithCallback" }; + return { name: "doSthWithCallback" }; }