Replies: 3 comments
-
cc @cyrus-za |
Beta Was this translation helpful? Give feedback.
0 replies
-
I think this can be achieved without making it a breaking change. Can have automatic alias for ones without it and then add a linting rule or something? But I am fine with making another major version. Which ever works for you. I like the idea though. I've also ran into it |
Beta Was this translation helpful? Give feedback.
0 replies
-
Sure, I could make a minor version with a deprecation warning! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Initially when writing trpc>1 I was thinking I would use
/
as a separator between sub-routers, but it's more readable to have the whole path written out.I've forgotten to add the
.
at the end a few times when creating sub-routers and it's a bit annoying. Don't see any harm in enforcing it.This would be a major version change, but easy refactor - could be done application-wide with a simple regex.
Change proposal
Before
After
Beta Was this translation helpful? Give feedback.
All reactions