René's URL Explorer Experiment


Title: Some way to express a non-null / non-undefined any would be nice · Issue #7648 · microsoft/TypeScript · GitHub

Open Graph Title: Some way to express a non-null / non-undefined any would be nice · Issue #7648 · microsoft/TypeScript

X Title: Some way to express a non-null / non-undefined any would be nice · Issue #7648 · microsoft/TypeScript

Description: While updating the various .d.ts to have | null and | undefined, I came across some typings that use any but don't allow null or undefined. Object.defineProperty: /** * Adds a property to an object, or modifies attributes of an existing ...

Open Graph Description: While updating the various .d.ts to have | null and | undefined, I came across some typings that use any but don't allow null or undefined. Object.defineProperty: /** * Adds a property to an object...

X Description: While updating the various .d.ts to have | null and | undefined, I came across some typings that use any but don't allow null or undefined. Object.defineProperty: /** * Adds a property to an ob...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Some way to express a non-null / non-undefined any would be nice","articleBody":"While updating the various .d.ts to have `| null` and `| undefined`, I came across some typings that use `any` but don't allow `null` or `undefined`.\n- Object.defineProperty:\n  \n  ``` typescript\n  /**\n    * Adds a property to an object, or modifies attributes of an existing property. \n    * @param o Object on which to add or modify the property. This can be a native JavaScript \n    * object (that is, a user-defined object or a built in object) or a DOM object.\n    * @param p The property name.\n    * @param attributes Descriptor for the property. It can be for a data property or an accessor\n    *  property.\n    */\n  defineProperty(o: any, propertyKey: PropertyKey, attributes: PropertyDescriptor): any;\n  ```\n  \n  `o` and the returned value cannot be `null` or `undefined`.\n- Object.setPrototypeOf:\n  \n  ``` typescript\n  /**\n    * Sets the prototype of a specified object o to  object proto or null. Returns the object o.\n    * @param o The object to change its prototype.\n    * @param proto The value of the new prototype or null.\n    */\n  setPrototypeOf(o: any, proto: any): any;\n  ```\n  \n  `o` and the returned value cannot be `null` or `undefined`. `proto` can be `null` but not `undefined`.\n- etc.\n\nI think there is value in being able to express both \"This can be any type including null and undefined\" and \"This can be any type excluding null / undefined\", but there is no way to express the latter.\n","author":{"url":"https://github.com/Arnavion","@type":"Person","name":"Arnavion"},"datePublished":"2016-03-23T01:16:05Z","url":"https://github.com/microsoft/TypeScript/issues/7648"}

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:1b599dc8-9486-2b08-969b-de0a6ee9e372
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD91C:28815B:7C67B7:A7EF65:6B00DEA3
html-safe-nonce788d95ccb4cb2274fcd164810e1d0b6c34f3b073e198a8c258674efb6b5e376a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOTFDOjI4ODE1Qjo3QzY3Qjc6QTdFRjY1OjZCMDBERUEzIiwidmlzaXRvcl9pZCI6IjQzODQwNDIzOTgzNjg0NTYzNTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacda0d01fce5f8dfd96bb44e24b5921a8e797e76d61515f2babefd8e3cf0c3fa02
hovercard-subject-tagissue:142825820
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/7648/issue_layout
twitter:imagehttps://opengraph.githubassets.com/fd115aec11a6c9e77d85d81fba170a06760ffd0af4a0c94a20de78b672f663a5/microsoft/TypeScript/issues/7648
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/fd115aec11a6c9e77d85d81fba170a06760ffd0af4a0c94a20de78b672f663a5/microsoft/TypeScript/issues/7648
og:image:altWhile updating the various .d.ts to have | null and | undefined, I came across some typings that use any but don't allow null or undefined. Object.defineProperty: /** * Adds a property to an object...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameArnavion
hostnamegithub.com
expected-hostnamegithub.com
None043c3f30fbcbe2c6c8e729e10cbbbc90c406546f9fbbb67c648d38f6b7d16daf
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
release5425dc24e8bd8d6fca9641a12afc984825a43875
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/7648#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F7648
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%2F7648
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/7648
Reloadhttps://github.com/microsoft/TypeScript/issues/7648
Reloadhttps://github.com/microsoft/TypeScript/issues/7648
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests308 (308)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/7648
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/7648
Some way to express a non-null / non-undefined any would be nicehttps://github.com/microsoft/TypeScript/issues/7648#top
https://github.com/Arnavion
Arnav Singh (Arnavion)https://github.com/Arnavion
on Mar 23, 2016https://github.com/microsoft/TypeScript/issues/7648#issue-142825820
Nexthttps://github.com/microsoft/TypeScript/issues/7648?timeline_page=1
https://github.com/yortus
Troy Gerwien (yortus)https://github.com/yortus
on Mar 23, 2016https://github.com/microsoft/TypeScript/issues/7648#issuecomment-200120895
'outersection' typeshttps://github.com/Microsoft/TypeScript/issues/6895
recent backlog sloghttps://github.com/Microsoft/TypeScript/issues/7510
https://github.com/Arnavion
Arnav Singh (Arnavion)https://github.com/Arnavion
on Mar 23, 2016https://github.com/microsoft/TypeScript/issues/7648#issuecomment-200121079
https://github.com/yortus
Troy Gerwien (yortus)https://github.com/yortus
on Mar 23, 2016https://github.com/microsoft/TypeScript/issues/7648#issuecomment-200122936
https://github.com/Arnavion
Arnav Singh (Arnavion)https://github.com/Arnavion
on Mar 23, 2016https://github.com/microsoft/TypeScript/issues/7648#issuecomment-200124666
https://github.com/yortus
Troy Gerwien (yortus)https://github.com/yortus
on Mar 23, 2016https://github.com/microsoft/TypeScript/issues/7648#issuecomment-200127395
https://github.com/jeffreymorlan
jeffreymorlanhttps://github.com/jeffreymorlan
on Mar 23, 2016https://github.com/microsoft/TypeScript/issues/7648#issuecomment-200144219
https://github.com/yortus
Troy Gerwien (yortus)https://github.com/yortus
on Mar 23, 2016https://github.com/microsoft/TypeScript/issues/7648#issuecomment-200145495
https://github.com/Arnavion
Arnav Singh (Arnavion)https://github.com/Arnavion
on Mar 23, 2016https://github.com/microsoft/TypeScript/issues/7648#issuecomment-200145619
#5451 (comment)https://github.com/microsoft/TypeScript/issues/5451#issuecomment-152257673
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on Mar 23, 2016https://github.com/microsoft/TypeScript/issues/7648#issuecomment-200158000
#1809https://github.com/microsoft/TypeScript/issues/1809
https://github.com/Arnavion
Arnav Singh (Arnavion)https://github.com/Arnavion
on Mar 23, 2016https://github.com/microsoft/TypeScript/issues/7648#issuecomment-200164758
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on Mar 23, 2016https://github.com/microsoft/TypeScript/issues/7648#issuecomment-200167451
https://github.com/yortus
Troy Gerwien (yortus)https://github.com/yortus
on Mar 23, 2016https://github.com/microsoft/TypeScript/issues/7648#issuecomment-200173825
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on Mar 23, 2016https://github.com/microsoft/TypeScript/issues/7648#issuecomment-200445509
https://github.com/Arnavion
Arnav Singh (Arnavion)https://github.com/Arnavion
on Mar 23, 2016https://github.com/microsoft/TypeScript/issues/7648#issuecomment-200575124
https://github.com/jods4
jods (jods4)https://github.com/jods4
on Mar 27, 2016https://github.com/microsoft/TypeScript/issues/7648#issuecomment-202109395
https://github.com/ORESoftware
Alexander Mills (ORESoftware)https://github.com/ORESoftware
on Jul 8, 2018https://github.com/microsoft/TypeScript/issues/7648#issuecomment-403322875
https://stackoverflow.com/questions/51236491/typescript-type-representing-everything-but-undefinedhttps://stackoverflow.com/questions/51236491/typescript-type-representing-everything-but-undefined
https://github.com/tswordyao
tswordyaohttps://github.com/tswordyao
on Mar 26, 2019https://github.com/microsoft/TypeScript/issues/7648#issuecomment-476553210
https://github.com/lppedd
Edoardo Luppi (lppedd)https://github.com/lppedd
on May 9, 2019https://github.com/microsoft/TypeScript/issues/7648#issuecomment-490934023
https://stackoverflow.com/questions/53612681/typescript-function-cannot-return-undefinedhttps://stackoverflow.com/questions/53612681/typescript-function-cannot-return-undefined
https://github.com/lemon-clown
lemon clown (lemon-clown)https://github.com/lemon-clown
on Aug 15, 2019https://github.com/microsoft/TypeScript/issues/7648#issuecomment-521496573
https://user-images.githubusercontent.com/14110615/63070103-5c642f00-bf4c-11e9-8d88-3e2ba8c0f767.png
https://github.com/nuts-n-bits
nuts-n-bitshttps://github.com/nuts-n-bits
on Aug 24, 2019https://github.com/microsoft/TypeScript/issues/7648#issuecomment-524525694
https://github.com/nuts-n-bits
nuts-n-bitshttps://github.com/nuts-n-bits
on Aug 24, 2019https://github.com/microsoft/TypeScript/issues/7648#issuecomment-524526264
https://github.com/cyberixae
Toni Ruottu (cyberixae)https://github.com/cyberixae
on Oct 1, 2019https://github.com/microsoft/TypeScript/issues/7648#issuecomment-537179215
Misha Kaletsky (@mmkal)https://github.com/mmkal
#13195https://github.com/microsoft/TypeScript/issues/13195
https://github.com/nuts-n-bits
nuts-n-bitshttps://github.com/nuts-n-bits
on Oct 1, 2019https://github.com/microsoft/TypeScript/issues/7648#issuecomment-537247234
https://github.com/nuts-n-bits
nuts-n-bitshttps://github.com/nuts-n-bits
on Oct 2, 2019https://github.com/microsoft/TypeScript/issues/7648#issuecomment-537525780
https://github.com/michalburger1
Michal Burger (michalburger1)https://github.com/michalburger1
on Oct 14, 2019https://github.com/microsoft/TypeScript/issues/7648#issuecomment-541625573
https://github.com/cyberixae
Toni Ruottu (cyberixae)https://github.com/cyberixae
on Oct 14, 2019https://github.com/microsoft/TypeScript/issues/7648#issuecomment-541769377
https://github.com/maasglobal/maas-schemas-ts/blob/master/src/core/booking.tshttps://github.com/maasglobal/maas-schemas-ts/blob/master/src/core/booking.ts
https://github.com/mykohsu
mykohsuhttps://github.com/mykohsu
on Apr 6, 2023https://github.com/microsoft/TypeScript/issues/7648#issuecomment-1498342863
microsofthttps://github.com/microsoft
on Apr 6, 2023https://github.com/microsoft/TypeScript/issues/7648#event-8950452866
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/7648
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/7648
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.