René's URL Explorer Experiment


Title: Add generic type parameter to startsWith/endsWith by LinusU · Pull Request #46959 · microsoft/TypeScript · GitHub

Open Graph Title: Add generic type parameter to startsWith/endsWith by LinusU · Pull Request #46959 · microsoft/TypeScript

X Title: Add generic type parameter to startsWith/endsWith by LinusU · Pull Request #46959 · microsoft/TypeScript

Description: TypeScript is a superset of JavaScript that compiles to clean JavaScript output. - Add generic type parameter to startsWith/endsWith by LinusU · Pull Request #46959 · microsoft/TypeScript

Open Graph Description: Fixes #46958 Sorry for being a bit quick to open this PR, I started by editing the code and then later found out about the proper process. I figured it would be good to open this one anyways a sugg...

X Description: Fixes #46958 Sorry for being a bit quick to open this PR, I started by editing the code and then later found out about the proper process. I figured it would be good to open this one anyways a sugg...

Opengraph URL: https://github.com/microsoft/TypeScript/pull/46959

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3

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/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:1be56f17-7e14-427c-d9eb-7ee0d41e7b19
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idCD94:3047DC:CF71AB:10ED15C:6B04E15A
html-safe-noncee6e6dc0f57c2e6d5f4197c56bc765a2a70a8ac96df28c1a507c5fa044072f628
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRDk0OjMwNDdEQzpDRjcxQUI6MTBFRDE1Qzo2QjA0RTE1QSIsInZpc2l0b3JfaWQiOiI0NDAyNjQzNjQ4MzI0NjI0NzMwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac75326f982e7c25c1b0fbd1e5597a03738899ab1c8d36fa7b55cae30d9492d7f1
hovercard-subject-tagpull_request:791904086
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/microsoft/TypeScript/46959/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/92f60a19753fd3f1941701e07f3b37ae407908e92a01478ac21b46c3e228cff7/microsoft/TypeScript/pull/46959
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/92f60a19753fd3f1941701e07f3b37ae407908e92a01478ac21b46c3e228cff7/microsoft/TypeScript/pull/46959
og:image:altFixes #46958 Sorry for being a bit quick to open this PR, I started by editing the code and then later found out about the proper process. I figured it would be good to open this one anyways a sugg...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameLinusU
hostnamegithub.com
expected-hostnamegithub.com
None970f03f35f02bb123d2b6f1884601d89a570dc02e5ef9612b1b6ca5c033b1796
turbo-cache-controlno-cache
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
releaseebcec4199c8521b643c068ef118a1ba9a43b678a
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/pull/46959#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F46959
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%2Fpull%2F46959
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%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=microsoft%2FTypeScript
Reloadhttps://github.com/microsoft/TypeScript/pull/46959
Reloadhttps://github.com/microsoft/TypeScript/pull/46959
Reloadhttps://github.com/microsoft/TypeScript/pull/46959
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests318 (318)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
Linus Unnebäck (LinusU)https://github.com/LinusU
microsoft:mainhttps://github.com/microsoft/TypeScript/tree/main
LinusU:starts-ends-withhttps://github.com/LinusU/TypeScript/tree/starts-ends-with
Conversationhttps://github.com/microsoft/TypeScript/pull/46959
Commits2 (2)https://github.com/microsoft/TypeScript/pull/46959/commits
Checkshttps://github.com/microsoft/TypeScript/pull/46959/checks
Files changedhttps://github.com/microsoft/TypeScript/pull/46959/files
Add generic type parameter to startsWith/endsWithhttps://github.com/microsoft/TypeScript/pull/46959#top
Linus Unnebäck (LinusU)https://github.com/LinusU
microsoft:mainhttps://github.com/microsoft/TypeScript/tree/main
LinusU:starts-ends-withhttps://github.com/LinusU/TypeScript/tree/starts-ends-with
https://github.com/LinusU
Linus Unnebäck (LinusU)https://github.com/LinusU
Nov 30, 2021https://github.com/microsoft/TypeScript/pull/46959#issue-1067482319
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/46959
#46958https://github.com/microsoft/TypeScript/issues/46958
"Contributing lib.d.ts fixes"https://github.com/microsoft/TypeScript/blob/main/CONTRIBUTING.md#contributing-libdts-fixes
"Adding a Test"https://github.com/microsoft/TypeScript/blob/main/CONTRIBUTING.md#adding-a-test
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/46959
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
For Uncommitted Bug https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22For%20Uncommitted%20Bug%22
Nov 30, 2021https://github.com/microsoft/TypeScript/pull/46959#event-5693554869
https://github.com/olivermrose
Oliver Rose (olivermrose)https://github.com/olivermrose
Nov 30, 2021https://github.com/microsoft/TypeScript/pull/46959#issuecomment-982847534
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/46959
https://github.com/LinusU
Linus Unnebäck (LinusU)https://github.com/LinusU
Nov 30, 2021https://github.com/microsoft/TypeScript/pull/46959#issuecomment-982848974
xibreadhttps://github.com/xibread
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/46959
https://github.com/LinusU
Linus Unnebäck (LinusU)https://github.com/LinusU
force-pushedhttps://github.com/microsoft/TypeScript/compare/8225d4c8d4e8088652676afb4c41572837178add..515d00ddccc68c0993d62107436c4078b8749c62
8225d4chttps://github.com/microsoft/TypeScript/commit/8225d4c8d4e8088652676afb4c41572837178add
515d00dhttps://github.com/microsoft/TypeScript/commit/515d00ddccc68c0993d62107436c4078b8749c62
Compare https://github.com/microsoft/TypeScript/compare/8225d4c8d4e8088652676afb4c41572837178add..515d00ddccc68c0993d62107436c4078b8749c62
November 30, 2021 17:25https://github.com/microsoft/TypeScript/pull/46959#event-5693624534
https://github.com/LinusU
Linus Unnebäck (LinusU)https://github.com/LinusU
Nov 30, 2021https://github.com/microsoft/TypeScript/pull/46959#issuecomment-982855919
linkhttps://www.typescriptlang.org/play#code/JYOwLgpgTgZghgYwgAgMpiqA5sg3gKGSOQHoAqMw45M5AJQjAFcoQBnZDJlYGTgCxRsIAR24gkyAPZ8IAGwgBbCOA4zkwuFAT90mEDgRSQAN2iQAJpynI4aDNmTAOYQVWK02cZbZeDkRlBQEGwADsYWjvJKKmBqfK7O0gBGAFYQCGDIABRGpuYQVmA2dnrYAJQaYFpgjnBg7kS0KhYAClJswLXGyIDIBMgKBq7ZiWzlAHTIAPKu0ADuzijBzKwc8HLC4400JI0tbADqXfwAPAAqyBAAHpAgFhxsDgYAfNma2rpPWABcyGcANJc7u1Ot0QAB+X5MO4QGCgQrlX6jJwcAAGABJcI99FgAL6Ys641EAbj2d0OxzeEC0OjKBl+2OwgJaIK6wGMkOQICYimS0ERyGSUikCjgIFJjXIlGoNHojBY7E4UG4TgS-mEYhUknU0WUqmkfHetK+AWMZiglmstnsOJRAgg2083hQcD8KECwTCESiCj1cQNAiSUjSGSyuTNBSKJRtFSqNTqDRltHCoPZIEmM0EUAWwmQywVazgGwgWyTu2ojxqFNc50uN32VRxryNnxxvwByBTbI5vwADALkUkMbhCZjGQYiaSK9ULdX+FSaa3sAyvoCu2DOdzefzfkKRdTxfhcfh8BYMnItO7jI9OCEwCucSfeDlII9xpXZ0dhgByV9gb-lJUeRsPu4xyFIWAjHe5T4M+UFvh+cRfvOv53t+gLQmecIgAiQHXqB4GQX+MFwX+74zkhlKoY86HIP2eHsAREHwWAJF8Cx5FVsh2TUf+gIAIyAaajEKGBzHEbB7FkYhc48X+tG9r4XI8nyUBCcBTFEdBkkvnenGflR8kCUpW6qep+GiYRLEwTpHH7NxvEAQxIGWeJ2mkXp9mGWhGEwthuHCS5JZWRJHlvl5P5GXR5kicFbmPGxunheSDlRYJzmadZtlkRFKFRYprrKduakZa5WkJdlnkpd5NHGYVpn8qVcXlaxQA
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/46959
https://github.com/LinusU
Linus Unnebäck (LinusU)https://github.com/LinusU
force-pushedhttps://github.com/microsoft/TypeScript/compare/515d00ddccc68c0993d62107436c4078b8749c62..edec1eb9ad24b9a590836d8e6cb9b59a0870c482
515d00dhttps://github.com/microsoft/TypeScript/commit/515d00ddccc68c0993d62107436c4078b8749c62
edec1ebhttps://github.com/microsoft/TypeScript/commit/edec1eb9ad24b9a590836d8e6cb9b59a0870c482
Compare https://github.com/microsoft/TypeScript/compare/515d00ddccc68c0993d62107436c4078b8749c62..edec1eb9ad24b9a590836d8e6cb9b59a0870c482
November 30, 2021 18:00https://github.com/microsoft/TypeScript/pull/46959#event-5693817991
https://github.com/LinusU
Add generic type parameter to startsWith/endsWithhttps://github.com/microsoft/TypeScript/pull/46959/commits/49b26b222dcc8e4a0bca30b6ecd50cbeb1980e71
49b26b2https://github.com/microsoft/TypeScript/pull/46959/commits/49b26b222dcc8e4a0bca30b6ecd50cbeb1980e71
https://github.com/LinusU
Linus Unnebäck (LinusU)https://github.com/LinusU
force-pushedhttps://github.com/microsoft/TypeScript/compare/edec1eb9ad24b9a590836d8e6cb9b59a0870c482..2ff5d377e245d0a020780a18b3d6951765dd0f5b
edec1ebhttps://github.com/microsoft/TypeScript/commit/edec1eb9ad24b9a590836d8e6cb9b59a0870c482
2ff5d37https://github.com/microsoft/TypeScript/commit/2ff5d377e245d0a020780a18b3d6951765dd0f5b
Compare https://github.com/microsoft/TypeScript/compare/edec1eb9ad24b9a590836d8e6cb9b59a0870c482..2ff5d377e245d0a020780a18b3d6951765dd0f5b
November 30, 2021 18:17https://github.com/microsoft/TypeScript/pull/46959#event-5693912437
https://github.com/LinusU
Linus Unnebäck (LinusU)https://github.com/LinusU
Nov 30, 2021https://github.com/microsoft/TypeScript/pull/46959#issuecomment-982896475
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/46959
https://github.com/LinusU
Linus Unnebäck (LinusU)https://github.com/LinusU
force-pushedhttps://github.com/microsoft/TypeScript/compare/2ff5d377e245d0a020780a18b3d6951765dd0f5b..830581ab270209ff178655fa7765a397d8e8f7b9
2ff5d37https://github.com/microsoft/TypeScript/commit/2ff5d377e245d0a020780a18b3d6951765dd0f5b
830581ahttps://github.com/microsoft/TypeScript/commit/830581ab270209ff178655fa7765a397d8e8f7b9
Compare https://github.com/microsoft/TypeScript/compare/2ff5d377e245d0a020780a18b3d6951765dd0f5b..830581ab270209ff178655fa7765a397d8e8f7b9
November 30, 2021 18:20https://github.com/microsoft/TypeScript/pull/46959#event-5693924762
https://github.com/LinusU
Add tests for generic startsWith/endsWithhttps://github.com/microsoft/TypeScript/pull/46959/commits/3ae38faff83235c69fd0361358774c897e7d1c65
3ae38fahttps://github.com/microsoft/TypeScript/pull/46959/commits/3ae38faff83235c69fd0361358774c897e7d1c65
https://github.com/LinusU
Linus Unnebäck (LinusU)https://github.com/LinusU
force-pushedhttps://github.com/microsoft/TypeScript/compare/830581ab270209ff178655fa7765a397d8e8f7b9..3ae38faff83235c69fd0361358774c897e7d1c65
830581ahttps://github.com/microsoft/TypeScript/commit/830581ab270209ff178655fa7765a397d8e8f7b9
3ae38fahttps://github.com/microsoft/TypeScript/commit/3ae38faff83235c69fd0361358774c897e7d1c65
Compare https://github.com/microsoft/TypeScript/compare/830581ab270209ff178655fa7765a397d8e8f7b9..3ae38faff83235c69fd0361358774c897e7d1c65
November 30, 2021 20:32https://github.com/microsoft/TypeScript/pull/46959#event-5694594794
https://github.com/LinusU
Linus Unnebäck (LinusU)https://github.com/LinusU
Nov 30, 2021 https://github.com/microsoft/TypeScript/pull/46959#ref-issue-1067475082
Using startsWith & endsWith to narrow type #46958 https://github.com/microsoft/TypeScript/issues/46958
https://github.com/LinusU
Linus Unnebäck (LinusU)https://github.com/LinusU
Dec 1, 2021https://github.com/microsoft/TypeScript/pull/46959#issuecomment-983501400
#46958https://github.com/microsoft/TypeScript/issues/46958
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/46959
https://github.com/LinusU
Linus Unnebäck (LinusU)https://github.com/LinusU
Dec 1, 2021https://github.com/microsoft/TypeScript/pull/46959#event-5697973595
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Dec 1, 2021https://github.com/microsoft/TypeScript/pull/46959#issuecomment-983501541
#46958https://github.com/microsoft/TypeScript/issues/46958
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/46959
https://github.com/microsoft
Microsoft (microsoft)https://github.com/microsoft
Oct 21, 2025https://github.com/microsoft/TypeScript/pull/46959#event-20417472959
https://github.co/hiddenchars
https://github.com/microsoft/TypeScript/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F46959
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/46959
For Uncommitted Bug https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22For%20Uncommitted%20Bug%22
Using startsWith & endsWith to narrow type https://github.com/microsoft/TypeScript/issues/46958
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/46959
https://github.com/LinusU
https://github.com/olivermrose
https://github.com/typescript-bot
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

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.