Skip to content

Commit f9642e9

Browse files
fix: fix mp-weixin permission types
1 parent e31c7f8 commit f9642e9

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

packages/core/src/config/types/mpWeixin.ts

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -197,15 +197,10 @@ export interface MpWeixin {
197197
navigateToMiniProgramAppIdList?: string[]
198198

199199
/** 接口权限设置,详见 <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+
} >>;
209204

210205
/** Worker 代码目录,详见 <https://developers.weixin.qq.com/miniprogram/dev/framework/workers.html> */
211206
workers?: string | {

0 commit comments

Comments
 (0)