Closed victorpatru closed 1 year ago
Latest commit: 98b12059f57829ad927462389ab451360b82991c
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Updated |
---|---|---|---|
ts-error-translator | ✅ Ready (Inspect) | Visit Preview | Oct 6, 2022 at 6:30PM (UTC) |
Original seems straightforward enough.
Also you can simplify your example like this:
type Role = 'admin' | 'user' | 'super-admin';
const defaultRole: Role = 'admiiin';
great example!
Adding error translation and example for TS Error 2820