You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constSELF_CLOSING_TAGS=newSet(['area','img','input',// add more...]asconst)typeSelfClosingTag=typeofSELF_CLOSING_TAGSextendsSet<infer T>
? T
: never/** * Type guard to check if a tag is a void element * @param tag - The HTML tag to check * @returns True if the tag is a void element */functionisSelfClosingTag(tag: unknown): tag is SelfClosingTag{returntypeoftag==='string'&&SELF_CLOSING_TAGS.has(tagasSelfClosingTag)}
Additional information
I intend to submit a PR for this feature.
I have already implemented and/or tested this feature.
The text was updated successfully, but these errors were encountered:
Describe the feature
Complexity can be changed but performance difference is negligible. Should I make a new PR for this or just say thank you for your work?
radix-vue/packages/core/src/Primitive/Primitive.ts
Line 55 in 3e150bf
Additional information
The text was updated successfully, but these errors were encountered: