-
-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: 微信小程序permission配置项类型全必选错误 #36
base: main
Are you sure you want to change the base?
Conversation
WalkthroughThe pull request modifies the Changes
Assessment against linked issues
Possibly related PRs
Suggested labels
Poem
Recent review detailsConfiguration used: CodeRabbit UI Files selected for processing (1)
Additional comments not posted (1)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Description 描述
<Record<'scope.userLocation' | 'scope.userLocationBackground' | 'scope.userFuzzyLocation', { /** 小程序获取权限时展示的接口用途说明 */ desc: string } >
会导致一旦填写了permission配置项就必须填写上述代码中的所有权限(userLocation, userLocationBackground, userFuzzyLocation)
对其用Partial包括使其可选化
Partial<Record<'scope.userLocation' | 'scope.userLocationBackground' | 'scope.userFuzzyLocation', { /** 小程序获取权限时展示的接口用途说明 */ desc: string; }>>;
Linked Issues 关联的 Issues
fix #34
Additional context 额外上下文
#35
Summary by CodeRabbit
MpWeixin
interface, allowing developers to specify only the necessary permissions without requiring all permissions to be included.This change improves usability and customization for developers working with the interface.