René's URL Explorer Experiment


Title: request: Turn off required properties check in TSX context · Issue #12016 · microsoft/TypeScript · GitHub

Open Graph Title: request: Turn off required properties check in TSX context · Issue #12016 · microsoft/TypeScript

X Title: request: Turn off required properties check in TSX context · Issue #12016 · microsoft/TypeScript

Description: I want to turn off required properties check in TSX context with using skate.js http://skate.js.org/ And, I don't want to turn of type checking about properties. cc/ Bradley Ayers (@bradleyayers) do you interested in this issue? TypeScri...

Open Graph Description: I want to turn off required properties check in TSX context with using skate.js http://skate.js.org/ And, I don't want to turn of type checking about properties. cc/ Bradley Ayers (@bradleyayers) d...

X Description: I want to turn off required properties check in TSX context with using skate.js http://skate.js.org/ And, I don't want to turn of type checking about properties. cc/ Bradley Ayers (@bradleyayer...

Opengraph URL: https://github.com/microsoft/TypeScript/issues/12016

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"request: Turn off required properties check in TSX context","articleBody":"I want to turn off required properties check in TSX context with using skate.js http://skate.js.org/\r\nAnd, I don't want to turn of type checking about properties.\r\n\r\ncc/ @bradleyayers do you interested in this issue?\r\n\r\n**TypeScript Version:**  2.0.6\r\n\r\n**Code**\r\n\r\nReproduce code is here.\r\nhttps://gist.github.com/vvakame/e7a230fa558763e225b58d57b459f64d\r\n\r\nsummary\r\n\r\n```ts\r\ndeclare global {\r\n    namespace JSX {\r\n        interface ElementAttributesProperty {\r\n            '': any;\r\n        }\r\n    }\r\n}\r\n```\r\n\r\n```ts\r\ndeclare module \"skatejs\" {\r\n  export class Component extends HTMLElement {\r\n  }\r\n}\r\n```\r\n\r\n```ts\r\nconst ComponentA = skate.define(\"x-component-a\", class ComponentA extends skate.Component {\r\n    myCounter = 0;\r\n\r\n    ...\r\n}\r\n\r\nskate.define(\"x-main\", class Main extends skate.Component {\r\n    render(elem: this): JSX.Element {\r\n        return (\r\n            // tsc raise a lot of errors!\r\n            // error TS2324: Property 'ATTRIBUTE_NODE' is missing in type 'ComponentA'.\r\n            // error TS2324: Property 'outerHTML' is missing in type 'ComponentA'.\r\n            // ...\r\n            // but I want a type checking...\r\n            \u003cComponentA myCounter={-3}>\u003c/ComponentA>\r\n        );\r\n    }\r\n\r\n    ...\r\n});\r\n```\r\n\r\nother information.\r\n\r\nfrom [src/compiler/checker.ts](https://github.com/Microsoft/TypeScript/blob/master/src/compiler/checker.ts)\r\n\r\n```\r\n        /// e.g. \"props\" for React.d.ts,\r\n        /// or 'undefined' if ElementAttributesProperty doesn't exist (which means all\r\n        ///     non-intrinsic elements' attributes type is 'any'),\r\n        /// or '' if it has 0 properties (which means every\r\n        ///     non-intrinsic elements' attributes type is the element instance type)\r\n        function getJsxElementPropertiesName() {\r\n```\r\n\r\nI want to change `targetAttributesType && !sawSpreadedAny` to something like... `targetAttributesType && !sawSpreadedAny && !suppressRequiredPropertyCheck`.\r\n\r\n```\r\n        function checkJsxOpeningLikeElement(node: JsxOpeningLikeElement) {\r\n\r\n            ...\r\n\r\n            // Check that all required properties have been provided. If an 'any'\r\n            // was spreaded in, though, assume that it provided all required properties\r\n            if (targetAttributesType && !sawSpreadedAny) {\r\n                const targetProperties = getPropertiesOfType(targetAttributesType);\r\n                for (let i = 0; i \u003c targetProperties.length; i++) {\r\n                    if (!(targetProperties[i].flags & SymbolFlags.Optional) &&\r\n                        !nameTable[targetProperties[i].name]) {\r\n\r\n                        error(node, Diagnostics.Property_0_is_missing_in_type_1, targetProperties[i].name, typeToString(targetAttributesType));\r\n                    }\r\n                }\r\n            }\r\n```\r\n\r\n\r\n**Expected behavior:**\r\n\r\nWe can compile my code.\r\n\r\n**Actual behavior:** \r\n\r\ntsc raise a lot of errors.\r\n","author":{"url":"https://github.com/vvakame","@type":"Person","name":"vvakame"},"datePublished":"2016-11-03T08:21:02Z","url":"https://github.com/microsoft/TypeScript/issues/12016"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:a5774646-bcdc-98b0-03a6-822b32fb72f2
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA370:2E3FEE:1C47FF:24D2F7:6B00CAA8
html-safe-nonce737fca08c6a67b2258d000260f869fe809e49aa8be3b86ac2b7eef75ec544db4
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMzcwOjJFM0ZFRToxQzQ3RkY6MjREMkY3OjZCMDBDQUE4IiwidmlzaXRvcl9pZCI6Ijc4MDU0MTgwMTA2OTY1MzQ2OTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacc54899822c80b16164be314089c389fbf0078767b3dddf5cca7d524732dd1700
hovercard-subject-tagissue:186999102
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/12016/issue_layout
twitter:imagehttps://opengraph.githubassets.com/3f8bc927bb17e16510ccf6e3796cfcf26a86aabdc1ff383a8f9f3d8e211934ab/microsoft/TypeScript/issues/12016
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/3f8bc927bb17e16510ccf6e3796cfcf26a86aabdc1ff383a8f9f3d8e211934ab/microsoft/TypeScript/issues/12016
og:image:altI want to turn off required properties check in TSX context with using skate.js http://skate.js.org/ And, I don't want to turn of type checking about properties. cc/ Bradley Ayers (@bradleyayers) d...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamevvakame
hostnamegithub.com
expected-hostnamegithub.com
None98dc00e171c204462a6f367482a0f8c3c6b5dbca99cd7390e82d2df49ce096e4
turbo-cache-controlno-preview
go-importgithub.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git
octolytics-dimension-user_id6154722
octolytics-dimension-user_loginmicrosoft
octolytics-dimension-repository_id20929025
octolytics-dimension-repository_nwomicrosoft/TypeScript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id20929025
octolytics-dimension-repository_network_root_nwomicrosoft/TypeScript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseef013399cf0a3c324bea644a685d7c1e0f06b5b7
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/12016#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F12016
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F12016
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=microsoft%2FTypeScript
Reloadhttps://github.com/microsoft/TypeScript/issues/12016
Reloadhttps://github.com/microsoft/TypeScript/issues/12016
Reloadhttps://github.com/microsoft/TypeScript/issues/12016
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests307 (307)https://github.com/microsoft/TypeScript/pulls
Actionshttps://github.com/microsoft/TypeScript/actions
Projectshttps://github.com/microsoft/TypeScript/projects
Wikihttps://github.com/microsoft/TypeScript/wiki
Security and qualityhttps://github.com/microsoft/TypeScript/security
Insightshttps://github.com/microsoft/TypeScript/insights
https://github.com/microsoft/TypeScript
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/12016
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/12016
request: Turn off required properties check in TSX contexthttps://github.com/microsoft/TypeScript/issues/12016#top
https://github.com/vvakame
Masahiro Wakame (vvakame)https://github.com/vvakame
on Nov 3, 2016https://github.com/microsoft/TypeScript/issues/12016#issue-186999102
http://skate.js.org/http://skate.js.org/
Bradley Ayers (@bradleyayers)https://github.com/bradleyayers
https://gist.github.com/vvakame/e7a230fa558763e225b58d57b459f64dhttps://gist.github.com/vvakame/e7a230fa558763e225b58d57b459f64d
src/compiler/checker.tshttps://github.com/Microsoft/TypeScript/blob/master/src/compiler/checker.ts
https://github.com/thorn0
Georgii Dolzhykov (thorn0)https://github.com/thorn0
on Nov 3, 2016https://github.com/microsoft/TypeScript/issues/12016#issuecomment-258247349
#7004https://github.com/microsoft/TypeScript/issues/7004
https://github.com/aluanhaddad
Aluan Haddad (aluanhaddad)https://github.com/aluanhaddad
on Nov 3, 2016https://github.com/microsoft/TypeScript/issues/12016#issuecomment-258302645
Georgii Dolzhykov (@thorn0)https://github.com/thorn0
#7004https://github.com/microsoft/TypeScript/issues/7004
https://github.com/thorn0
Georgii Dolzhykov (thorn0)https://github.com/thorn0
on Nov 3, 2016https://github.com/microsoft/TypeScript/issues/12016#issuecomment-258303881
https://github.com/vvakame
Masahiro Wakame (vvakame)https://github.com/vvakame
on Nov 4, 2016https://github.com/microsoft/TypeScript/issues/12016#issuecomment-258325109
Masahiro Wakame (vvakame)https://github.com/vvakame
completedhttps://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Nov 4, 2016https://github.com/microsoft/TypeScript/issues/12016#event-847334915
https://github.com/aluanhaddad
Aluan Haddad (aluanhaddad)https://github.com/aluanhaddad
on Nov 4, 2016https://github.com/microsoft/TypeScript/issues/12016#issuecomment-258410104
Georgii Dolzhykov (@thorn0)https://github.com/thorn0
https://github.com/thorn0
Georgii Dolzhykov (thorn0)https://github.com/thorn0
on Nov 4, 2016https://github.com/microsoft/TypeScript/issues/12016#issuecomment-258416293
Aluan Haddad (@aluanhaddad)https://github.com/aluanhaddad
https://github.com/aluanhaddad
Aluan Haddad (aluanhaddad)https://github.com/aluanhaddad
on Nov 4, 2016https://github.com/microsoft/TypeScript/issues/12016#issuecomment-258416975
Georgii Dolzhykov (@thorn0)https://github.com/thorn0
https://github.com/thorn0
Georgii Dolzhykov (thorn0)https://github.com/thorn0
on Nov 4, 2016https://github.com/microsoft/TypeScript/issues/12016#issuecomment-258419248
Aluan Haddad (@aluanhaddad)https://github.com/aluanhaddad
microsofthttps://github.com/microsoft
on Jun 19, 2018https://github.com/microsoft/TypeScript/issues/12016#event-1689919731
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/12016
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/12016
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.