Skip to content

Conversation

@nys013
Copy link

@nys013 nys013 commented Sep 30, 2025

文档描述为
image

但设置:capture="null" ts会飘红报错
image

建议修改capture的ts类型,增加null

capture: someType<boolean | 'user' | 'environment' | null>([Boolean, String]),
capture: [Boolean, String] as PropType<boolean | 'user' | 'environment' | null>,

或者改文档描述为

You can set `:capture="undefined"`
你可以设置 `:capture="undefined"`

看代码{...(capture != null ? { capture } : {})}是用!=比较的,所以传undefined也可以

且这一描述一开始应该是针对这个issue5986加的吧

@github-actions
Copy link

This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

@github-actions github-actions bot added the Stale label Nov 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant