File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed
packages/core/src/config/types Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -197,15 +197,10 @@ export interface MpWeixin {
197
197
navigateToMiniProgramAppIdList ?: string [ ]
198
198
199
199
/** 接口权限设置,详见 <https://developers.weixin.qq.com/miniprogram/dev/reference/configuration/app.html#permission> */
200
- permission ?: Record <
201
- 'scope.userLocation' |
202
- 'scope.userLocationBackground' |
203
- 'scope.userFuzzyLocation' ,
204
- {
205
- /** 小程序获取权限时展示的接口用途说明 */
206
- desc : string
207
- }
208
- >
200
+ permission ?: Partial < Record < 'scope.userLocation' | 'scope.userLocationBackground' | 'scope.userFuzzyLocation' , {
201
+ /** 小程序获取权限时展示的接口用途说明 */
202
+ desc : string
203
+ } > > ;
209
204
210
205
/** Worker 代码目录,详见 <https://developers.weixin.qq.com/miniprogram/dev/framework/workers.html> */
211
206
workers ?: string | {
You can’t perform that action at this time.
0 commit comments