Skip to content

docs(angular): use type annotations instead of casting #1433

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

harry-whorlow
Copy link
Contributor

@harry-whorlow harry-whorlow commented Apr 20, 2025

Following some remarks from twitter, and as discussed in the maintainers channel we should avoid casting in the docs. This pr removes the casting defaultValues in examples and docs.

Copy link

nx-cloud bot commented Apr 20, 2025

View your CI Pipeline Execution ↗ for commit 35fccbe.

Command Status Duration Result
nx affected --targets=test:sherif,test:knip,tes... ✅ Succeeded 46s View ↗
nx run-many --target=build --exclude=examples/** ✅ Succeeded <1s View ↗

☁️ Nx Cloud last updated this comment at 2025-05-16 15:18:47 UTC

@harry-whorlow harry-whorlow marked this pull request as ready for review April 20, 2025 19:41
Copy link

pkg-pr-new bot commented Apr 20, 2025

More templates

@tanstack/angular-form

npm i https://pkg.pr.new/@tanstack/angular-form@1433

@tanstack/form-core

npm i https://pkg.pr.new/@tanstack/form-core@1433

@tanstack/react-form

npm i https://pkg.pr.new/@tanstack/react-form@1433

@tanstack/lit-form

npm i https://pkg.pr.new/@tanstack/lit-form@1433

@tanstack/svelte-form

npm i https://pkg.pr.new/@tanstack/svelte-form@1433

@tanstack/solid-form

npm i https://pkg.pr.new/@tanstack/solid-form@1433

@tanstack/vue-form

npm i https://pkg.pr.new/@tanstack/vue-form@1433

commit: 35fccbe

@crutchcorn
Copy link
Member

Ahh, sorry @harry-whorlow for not catching this prior to a closed PR. I'm in favor of type annotations; what does casting bring to us otherwise?

@harry-whorlow
Copy link
Contributor Author

harry-whorlow commented May 16, 2025

@crutchcorn It wasn't so much as me closing it in favour of casting, I'm for annotations too, I just didn’t want to bother the other maintainers with it for now 🙂

But, I can reopen it

@harry-whorlow harry-whorlow reopened this May 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants