René's URL Explorer Experiment


Title: Expose ControlConfig type under @angular/forms · Issue #46570 · angular/angular · GitHub

Open Graph Title: Expose ControlConfig type under @angular/forms · Issue #46570 · angular/angular

X Title: Expose ControlConfig type under @angular/forms · Issue #46570 · angular/angular

Description: Which @angular/* package(s) are the source of the bug? forms Is this a regression? No Description Expose ControlConfig type in public API export type ControlConfig = [T|FormControlState, (ValidatorFn|(ValidatorFn[]))?, (AsyncValida...

Open Graph Description: Which @angular/* package(s) are the source of the bug? forms Is this a regression? No Description Expose ControlConfig type in public API export type ControlConfig = [T|FormControlState, (Val...

X Description: Which @angular/* package(s) are the source of the bug? forms Is this a regression? No Description Expose ControlConfig type in public API export type ControlConfig<T> = [T|FormControlState<...

Opengraph URL: https://github.com/angular/angular/issues/46570

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Expose ControlConfig type under @angular/forms","articleBody":"### Which @angular/* package(s) are the source of the bug?\r\n\r\nforms\r\n\r\n### Is this a regression?\r\n\r\nNo\r\n\r\n### Description\r\n\r\nExpose `ControlConfig` type in public API\r\n\r\n```typescript\r\nexport type ControlConfig\u003cT> = [T|FormControlState\u003cT>, (ValidatorFn|(ValidatorFn[]))?, (AsyncValidatorFn|AsyncValidatorFn[])?];\r\n```\r\nhttps://github.com/angular/angular/blob/main/packages/forms/src/form_builder.ts#L32\r\n\r\nSo, `ControlConfig` type can be consumed within applications like this:\r\n`import { ControlConfig } from '@angular/forms';`\r\n\r\n### Please provide a link to a minimal reproduction of the bug\r\n\r\n- `> npx @angular/cli@next new web-apps --create-application false --strict`\r\n- `> cd web-apps`\r\n- `> yarn ng generate app admin-console --routing --style css`\r\n- Edit `projects/admin-console/src/app/app.component.ts` and replace with this code\r\n\r\n```typescript\r\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\r\nimport {\r\n  AsyncValidatorFn,\r\n  FormControl,\r\n  FormControlState,\r\n  FormGroup,\r\n  NonNullableFormBuilder,\r\n  ValidatorFn,\r\n  Validators,\r\n} from '@angular/forms';\r\n\r\ninterface Credentials {\r\n  email: string;\r\n  password: string;\r\n}\r\n\r\ninterface LoginCredentialsInitialReactiveFormGroup {\r\n  email: ControlConfig\u003cstring>;\r\n  password: ControlConfig\u003cstring>;\r\n}\r\n\r\ninterface LoginCredentialsReactiveFormGroup {\r\n  email: FormControl\u003cstring>;\r\n  password: FormControl\u003cstring>;\r\n}\r\n\r\n@Component({\r\n  selector: 'app-root',\r\n  templateUrl: './app.component.html',\r\n  styleUrls: ['./app.component.css'],\r\n  changeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\nexport class AppComponent {\r\n  title = 'admin-console';\r\n\r\n  public loginFormGroup: FormGroup\u003cLoginCredentialsReactiveFormGroup>;\r\n\r\n  constructor(private readonly fb: NonNullableFormBuilder) {\r\n    this.loginFormGroup =\r\n      this.fb.group\u003cLoginCredentialsInitialReactiveFormGroup>({\r\n        email: ['', [Validators.required]],\r\n        password: ['', [Validators.required]],\r\n      });\r\n\r\n    const afterSubmitData: Credentials = this.loginFormGroup.getRawValue();\r\n  }\r\n}\r\n```\r\n\r\n\r\n### Please provide the exception or error you saw\r\n\r\n`Cannot find name 'ControlConfig'. ts(2304)`\r\n\r\n### Please provide the environment you discovered this bug in (run `ng version`)\r\n\r\n```\r\nAngular CLI: 14.1.0-next.3\r\nNode: 16.15.1\r\nPackage Manager: npm 8.11.0 \r\nOS: darwin arm64\r\n\r\nAngular: 14.0.4\r\n... animations, common, compiler, compiler-cli, core, forms\r\n... platform-browser, platform-browser-dynamic, router\r\n\r\nPackage                         Version\r\n---------------------------------------------------------\r\n@angular-devkit/architect       0.1401.0-next.3\r\n@angular-devkit/build-angular   14.1.0-next.3\r\n@angular-devkit/core            14.1.0-next.3\r\n@angular-devkit/schematics      14.1.0-next.3\r\n@angular/cli                    14.1.0-next.3\r\n@schematics/angular             14.1.0-next.3\r\nrxjs                            7.5.5\r\ntypescript                      4.7.4\r\n```\r\n### Anything else?\r\n\r\nAfter you review the reproduction example, Could you describe an approach where we can achieve the same results with 1 interface instead of 3 interfaces?\r\nPerhaps some typescript utility types could be provided out of the box.\r\nExample:\r\n```typescript\r\nexport type ControlsOf\u003cT extends Record\u003cstring, any>> = {\r\n  [K in keyof T]: T[K] extends Record\u003cany, any>\r\n  ? FormGroup\u003cControlsOf\u003cT[K]>>\r\n  : FormControl\u003cT[K]>;\r\n};\r\n```\r\nas mentioned in https://netbasal.com/typed-reactive-forms-in-angular-no-longer-a-type-dream-bf6982b0af28","author":{"url":"https://github.com/prabh-62","@type":"Person","name":"prabh-62"},"datePublished":"2022-06-28T23:20:04Z","url":"https://github.com/angular/angular/issues/46570"}

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:16f483e8-b4ba-81fb-378c-962db92a4983
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD082:20AA01:F84192:13E0F58:6B00FD84
html-safe-nonced0046f9e95f6816b79e88d88b820b0a52b4691cadb8a470b9e365dfd66bc139f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMDgyOjIwQUEwMTpGODQxOTI6MTNFMEY1ODo2QjAwRkQ4NCIsInZpc2l0b3JfaWQiOiI2MzQzOTcxMzE4NTQyNjk1ODEyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac8bdb29284b7000d69d16a4727c3986dae8f9c230d473bf34788b8e18ee86b8ce
hovercard-subject-tagissue:1288001412
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/angular/angular/46570/issue_layout
twitter:imagehttps://opengraph.githubassets.com/97033ed406d58013eef3135059d9361dcabd22f4dea3af6f89924e89a6b26c9a/angular/angular/issues/46570
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/97033ed406d58013eef3135059d9361dcabd22f4dea3af6f89924e89a6b26c9a/angular/angular/issues/46570
og:image:altWhich @angular/* package(s) are the source of the bug? forms Is this a regression? No Description Expose ControlConfig type in public API export type ControlConfig = [T|FormControlState, (Val...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameprabh-62
hostnamegithub.com
expected-hostnamegithub.com
Nonee208d86428ec00a57ade75058166297440e8128a01e5287c31a53dc042bbf187
turbo-cache-controlno-preview
go-importgithub.com/angular/angular git https://github.com/angular/angular.git
octolytics-dimension-user_id139426
octolytics-dimension-user_loginangular
octolytics-dimension-repository_id24195339
octolytics-dimension-repository_nwoangular/angular
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id24195339
octolytics-dimension-repository_network_root_nwoangular/angular
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
release7dafd017fb7809a839c443dba08622af38e63c09
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular/issues/46570#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F46570
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%2Fangular%2Fangular%2Fissues%2F46570
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=angular%2Fangular
Reloadhttps://github.com/angular/angular/issues/46570
Reloadhttps://github.com/angular/angular/issues/46570
Reloadhttps://github.com/angular/angular/issues/46570
angularhttps://github.com/angular
angularhttps://github.com/angular/angular
Codehttps://github.com/angular/angular
Issues835 (835)https://github.com/angular/angular/issues
Pull requests141 (141)https://github.com/angular/angular/pulls
Discussionshttps://github.com/angular/angular/discussions
Actionshttps://github.com/angular/angular/actions
Projectshttps://github.com/angular/angular/projects
Security and quality40 (40)https://github.com/angular/angular/security
Insightshttps://github.com/angular/angular/insights
https://github.com/angular/angular
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/46570
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/46570
Expose ControlConfig type under @angular/formshttps://github.com/angular/angular/issues/46570#top
area: formshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20forms%22
good first issueLabel noting a good first issue to be worked on by a community memberhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22good%20first%20issue%22
open for contributionsAn issue that is suitable for a community contributor (based on its complexity/scope).https://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22open%20for%20contributions%22
state: has PRhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22state%3A%20has%20PR%22
needsTriagehttps://github.com/angular/angular/milestone/83
https://github.com/prabh-62
prabh-62https://github.com/prabh-62
on Jun 28, 2022https://github.com/angular/angular/issues/46570#issue-1288001412
https://github.com/angular/angular/blob/main/packages/forms/src/form_builder.ts#L32https://github.com/angular/angular/blob/main/packages/forms/src/form_builder.ts#L32
https://netbasal.com/typed-reactive-forms-in-angular-no-longer-a-type-dream-bf6982b0af28https://netbasal.com/typed-reactive-forms-in-angular-no-longer-a-type-dream-bf6982b0af28
dylhunnhttps://github.com/dylhunn
open for contributionsAn issue that is suitable for a community contributor (based on its complexity/scope).https://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22open%20for%20contributions%22
area: formshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20forms%22
good first issueLabel noting a good first issue to be worked on by a community memberhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22good%20first%20issue%22
on Jun 29, 2022https://github.com/angular/angular/issues/46570#event-6899036805
ngbothttps://github.com/apps/ngbot
needsTriagehttps://github.com/angular/angular/milestone/83
on Jun 29, 2022https://github.com/angular/angular/issues/46570#event-6899037011
https://github.com/zeeshanadnan
zeeshanadnanhttps://github.com/zeeshanadnan
on Jun 29, 2022https://github.com/angular/angular/issues/46570#issuecomment-1169587949
https://github.com/udaysonyy
udaysonyyhttps://github.com/udaysonyy
on Jun 29, 2022https://github.com/angular/angular/issues/46570#issuecomment-1169738567
AndrewKushnirhttps://github.com/AndrewKushnir
state: has PRhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22state%3A%20has%20PR%22
on Jun 29, 2022https://github.com/angular/angular/issues/46570#event-6903963155
dylhunnhttps://github.com/dylhunn
completedhttps://github.com/angular/angular/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jul 29, 2022https://github.com/angular/angular/issues/46570#event-7091636764
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Aug 29, 2022https://github.com/angular/angular/issues/46570#issuecomment-1230521652
automatic conversation locking policyhttps://github.com/angular/angular/blob/8f24bc9443b3872fe095d9f7f77b308a361a13b4/docs/GITHUB_PROCESS.md#conversation-locking
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Aug 29, 2022https://github.com/angular/angular/issues/46570#event-7280155314
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular/issues/46570
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular/issues/46570
area: formshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20forms%22
good first issueLabel noting a good first issue to be worked on by a community memberhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22good%20first%20issue%22
open for contributionsAn issue that is suitable for a community contributor (based on its complexity/scope).https://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22open%20for%20contributions%22
state: has PRhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22state%3A%20has%20PR%22
needsTriageNo due datehttps://github.com/angular/angular/milestone/83
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.