@@ -22,7 +22,7 @@ declare module '../index' {
2222 onShow : string
2323 preloadData ?: Record < any , any >
2424 /**
25- * RN 私有对象navigationRef ,用于使用底层接口控制路由
25+ * RN 私有对象 navigationRef ,用于使用底层接口控制路由
2626 */
2727 rnNavigationRef ?: React . RefObject < any >
2828 }
@@ -52,10 +52,10 @@ declare module '../index' {
5252 }
5353
5454 namespace interceptorify {
55- type promiseifyApi < T , R > = ( requestParams : T ) => Promise < R >
55+ type promisifyApi < T , R > = ( requestParams : T ) => Promise < R >
5656 interface InterceptorifyChain < T , R > {
5757 requestParams : T
58- proceed : promiseifyApi < T , R >
58+ proceed : promisifyApi < T , R >
5959 }
6060 type InterceptorifyInterceptor < T , R > = ( chain : InterceptorifyChain < T , R > ) => Promise < R >
6161 interface Interceptorify < T , R > {
@@ -112,7 +112,7 @@ declare module '../index' {
112112 mpVersion : string
113113 /** 小程序环境 */
114114 envType : string
115- /** 小程序appId */
115+ /** 小程序 appId */
116116 appId : string
117117 }
118118 /** 插件信息 */
@@ -121,7 +121,7 @@ declare module '../index' {
121121 common : {
122122 /** 用户数据存储的路径 */
123123 USER_DATA_PATH : string
124- /** 校验白名单属性中的appInfoLaunchFrom后返回额外信息 */
124+ /** 校验白名单属性中的 appInfoLaunchFrom 后返回额外信息 */
125125 location : string | undefined
126126 launchFrom : string | undefined
127127 schema : string | undefined
@@ -174,9 +174,9 @@ declare module '../index' {
174174 getRenderer ( ) : 'webview' | 'skyline'
175175
176176 /**
177- * 包裹 promiseify api 的洋葱圈模型
177+ * 包裹 promisify api 的洋葱圈模型
178178 * @supported global
179- * @param promiseifyApi
179+ * @param promisifyApi
180180 * @example
181181 * ```tsx
182182 * // 创建实例
@@ -228,6 +228,6 @@ declare module '../index' {
228228 * })
229229 * ```
230230 */
231- interceptorify < T , R > ( promiseifyApi : interceptorify . promiseifyApi < T , R > ) : interceptorify . Interceptorify < T , R >
231+ interceptorify < T , R > ( api : interceptorify . promisifyApi < T , R > ) : interceptorify . Interceptorify < T , R >
232232 }
233233}
0 commit comments