-
Notifications
You must be signed in to change notification settings - Fork 382
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
feat(core/i18n/t): Precise typing for message parameters #1840
Closed
Closed
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
a89baef
feat(core/i18n/t): Precise typing for message parameters
dilame 865dfad
feat(core/i18n/t): take into account escape characters
dilame 2da35cf
feat(core/i18n/t): only allow omit values param object if message str…
dilame 61e92d4
chore(core/i18n/t): use type-fest lib instead of manually declared ut…
dilame 1777509
fix(core/i18n/t): trim interpolation parameter names
dilame ab1419f
refactor: message descriptor types for core and macro
dilame 7f9e45d
test: add tests for new strict string interpolation typings
dilame fdd3fd8
refactor: rename type I18nT to I18nTValues
dilame 01fa074
chore: yarn.lock type-fest
dilame a53d429
refactor: rename descriptor types
dilame 1bf144f
chore: remove unnecessary eslint-ignore
dilame 43edfb2
refactor: rename type I18nT to I18nTValues
dilame 1726d7c
refactor: rename type _ExtractVars to ExtractVars
dilame a866f4f
refactor(core/i18n.t): use wide record type for values in case of wid…
dilame 60bbaf8
test(core/i18n.t): make the most complex test case even more complex
dilame dfd9d8e
feat(core/i18n.t/values): add formatters strict typing support
dilame 01d6608
test(core/i18n.t): formatter typings
dilame 64c697b
fix(core/i18n.t/values): replace all escaped symbols instead of just …
dilame 53d904b
test(core/i18n.t/values): ensure all escaped symbols in string are dr…
dilame 9d29f2d
chore(core/i18n.t/values): remove unnecessary condition in type Extra…
dilame c8cf4d1
chore(core/i18n.t/values): write explanation comments at each line of…
dilame e42c01e
chore(core/i18n.t/values): write explanation comments at each line of…
dilame d8463d1
chore(core/i18n/t): combine excessive overloads into one signature
dilame 3fc4562
chore(core/i18n/t): rename parameter 'id' to '_' in overloads
dilame File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you use webstorm and see warning from eslint from this rule that's probable because webstorm's eslint service should be restarted. It doesn't pick up changes in package.json automatically and continues to show error even if the package is already added. However this is not the case when you run eslint command directly.