Title: How to represent these SVG types? · Issue #15015 · microsoft/TypeScript · GitHub
Open Graph Title: How to represent these SVG types? · Issue #15015 · microsoft/TypeScript
X Title: How to represent these SVG types? · Issue #15015 · microsoft/TypeScript
Description: SVGFEBlendElement by SVG spec can be represented as: interface SVGFEBlendElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { // ... readonly mode: SVGAnimatedEnumeration; // ... } generated/dom.generated.d.ts(3163,11): err...
Open Graph Description: SVGFEBlendElement by SVG spec can be represented as: interface SVGFEBlendElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { // ... readonly mode: SVGAnimatedEnumeration; // ... } ge...
X Description: SVGFEBlendElement by SVG spec can be represented as: interface SVGFEBlendElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { // ... readonly mode: SVGAnimatedEnumeration; // ... } ge...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/15015
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"How to represent these SVG types?","articleBody":"[SVGFEBlendElement by SVG spec](http://www.w3.org/TR/SVG2/linking.html#InterfaceSVGFEBlendElement) can be represented as: \r\n\r\n```ts\r\ninterface SVGFEBlendElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\r\n // ...\r\n readonly mode: SVGAnimatedEnumeration;\r\n // ...\r\n}\r\n```\r\n\r\n```\r\ngenerated/dom.generated.d.ts(3163,11): error TS2430: Interface 'SVGFEBlendElement' incorrectly extends interface\r\n 'SVGElement'.\r\n Types of property 'mode' are incompatible.\r\n Type 'SVGAnimatedEnumeration' is not assignable to type 'ShadowRootMode'.\r\n Type 'SVGAnimatedEnumeration' is not assignable to type '\"closed\"'.\r\n```\r\n\r\nThe new conflicting `mode` property is from SVGElement->SVGElementInstance->[ShadowRoot](https://dom.spec.whatwg.org/#interface-shadowroot) which is not in current lib.d.ts.\r\n\r\n[SVGAElement by SVG spec](http://www.w3.org/TR/SVG2/linking.html#InterfaceSVGAElement) can be represented as: \r\n\r\n```ts\r\ninterface SVGAElement extends SVGGraphicsElement, SVGURIReference, HTMLHyperlinkElementUtils {\r\n // ...\r\n}\r\n// The current lib.d.ts does not have the HTMLHyperlinkElementUtils part.\r\n```\r\n\r\n```\r\ngenerated/dom.generated.d.ts(9542,11): error TS2320: Interface 'SVGAElement' cannot simultaneously extend types 'SVGGraphicsElement' and 'HTMLHyperlinkElementUtils'.\r\n Named property 'host' of types 'SVGGraphicsElement' and 'HTMLHyperlinkElementUtils' are not identical.\r\ngenerated/dom.generated.d.ts(9542,11): error TS2320: Interface 'SVGAElement' cannot simultaneously extend types 'SVGURIReference' and 'HTMLHyperlinkElementUtils'.\r\n Named property 'href' of types 'SVGURIReference' and 'HTMLHyperlinkElementUtils' are not identical.\r\n```","author":{"url":"https://github.com/saschanaz","@type":"Person","name":"saschanaz"},"datePublished":"2017-04-04T23:42:16Z","url":"https://github.com/microsoft/TypeScript/issues/15015"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:7701f796-ce48-dc81-a26a-cb5cdd1f37c3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B784:29FFA9:8F75AB:B741D4:6B00EBC0 |
| html-safe-nonce | 3948e4c20bf9bce4038a054a62efb4158c1622c162794c33e40f9d0b16a38e13 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNzg0OjI5RkZBOTo4Rjc1QUI6Qjc0MUQ0OjZCMDBFQkMwIiwidmlzaXRvcl9pZCI6IjMyNjM2ODA0MDUxNzc0Mjg5MjgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d226e97ce193e75ccc118e1796a77a9928f1d66ac5cdd131d5076aa49537bb5d |
| hovercard-subject-tag | issue:219418159 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/15015/issue_layout |
| twitter:image | https://opengraph.githubassets.com/744ca1acff92cd4b4e3473397c6618feb1a8063a588ff6dac6b927ff4eb50cbd/microsoft/TypeScript/issues/15015 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/744ca1acff92cd4b4e3473397c6618feb1a8063a588ff6dac6b927ff4eb50cbd/microsoft/TypeScript/issues/15015 |
| og:image:alt | SVGFEBlendElement by SVG spec can be represented as: interface SVGFEBlendElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { // ... readonly mode: SVGAnimatedEnumeration; // ... } ge... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | saschanaz |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4ef498cbabcbe3c50befc7a5b743e7072ee770b4daf0e15e54801180d1fa91fc |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 20929025 |
| octolytics-dimension-repository_nwo | microsoft/TypeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20929025 |
| octolytics-dimension-repository_network_root_nwo | microsoft/TypeScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9983dd5da06943f833c971dd5b6bc988e2858be5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width