Skip to content

Commit

Permalink
types(runtime-dom): add xmlns:xlink to SVGAttributes
Browse files Browse the repository at this point in the history
  • Loading branch information
Alfred-Skyblue committed Sep 27, 2023
1 parent 831e180 commit 2362b85
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/dts-test/tsx.test-d.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,11 @@ expectType<JSX.Element>(
)
// @ts-expect-error
;<Suspense onResolve={123} />

// svg
expectType<JSX.Element>(
<svg
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns="http://www.w3.org/2000/svg"
/>
)
1 change: 1 addition & 0 deletions packages/runtime-dom/src/jsx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1039,6 +1039,7 @@ export interface SVGAttributes extends AriaAttributes, EventHandlers<Events> {
xlinkTitle?: string
xlinkType?: string
xmlns?: string
'xmlns:xlink'?: string
y1?: Numberish
y2?: Numberish
y?: Numberish
Expand Down

0 comments on commit 2362b85

Please sign in to comment.