diff --git a/docs/plugin/uts-for-ios.md b/docs/plugin/uts-for-ios.md index 3c3613ef5acf6d8dba021692f3cf9e2315e7ece5..85df0251e19fe286fa12438366fc42a15c390b72 100644 --- a/docs/plugin/uts-for-ios.md +++ b/docs/plugin/uts-for-ios.md @@ -867,6 +867,25 @@ DispatchQueue.main.async(execute=():void => { 路径: > ~/uni_modules/uts-toast/utssdk/app-ios/index.uts +### 6.3 插件中需要显示使用类型,不能省略 + +由于在uts插件环境,无法默认推断出类型,所以需要显示类型,不能推断出类型 + +以`uni.request()`为例: +``` + uni.request({ + url: "http://xxx", + method: "GET", + success: (e : RequestSuccess) => { + + }, + fail(e : RequestFail) { + + }, + } as RequestOptions) +``` + + ## 7 已知待解决问题(持续更新)