Skip to content
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

fix: use typed functions in seed endpoint #10420

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

stevekuznetsov
Copy link
Contributor

JSON.parse(JSON.stringify().replace()) is easy to make mistakes with and since we have TypeScript data objects already for the data we're seeding it's pretty easy to just factor these as functions, making their dependencies explicit.

@stevekuznetsov
Copy link
Contributor Author

View diff with whitespace ignored to see the change without indent noise!

@stevekuznetsov stevekuznetsov force-pushed the skuznets/use-typed-functions-website-template branch 2 times, most recently from af97260 to d0d05e3 Compare January 7, 2025 17:21
`JSON.parse(JSON.stringify().replace())` is easy to make mistakes with
and since we have TypeScript data objects already for the data we're
seeding it's pretty easy to just factor these as functions, making their
dependencies explicit.

Signed-off-by: Steve Kuznetsov <[email protected]>
@stevekuznetsov stevekuznetsov force-pushed the skuznets/use-typed-functions-website-template branch from d0d05e3 to 280eae2 Compare January 8, 2025 01:54
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.

1 participant