Typesafe namespaces
See original GitHub issueCurrently one has to type local name fully. Indeed this is error-prone: one typo and your XML is invalid because you used non-existent namespace. Is it possible to add return type to the namespace
method, which will be possible to reuse in attribute and element declaration? It son’t break any existing API (seemingly) but will allow more type-safe manner of work with namespaces
Issue Analytics
- State:
- Created a year ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
ivanhofer/typesafe-i18n - add `namespaces` functionality
Namespaces would be a native option to load only selected parts of the translations. Useful for bigger applications so not all messages need ......
Read more >How To Use Namespaces in TypeScript
In TypeScript, you can use namespaces to organize your code. Previously known as internal modules, namespaces in TypeScript are based on an ...
Read more >Documentation - Declaration Merging
In TypeScript, a declaration creates entities in at least one of three groups: namespace, type, or value. Namespace-creating declarations create a namespace ......
Read more >typescript - How to specify a generic type in a namespace ...
1 Answer 1 ... TypeScript namespaces have limitations on the type operations we can perform. If we try type operations on a namespace,...
Read more >typesafe-i18n
An opinionated, fully type-safe, lightweight localization library for TypeScript and JavaScript projects with no external dependencies. npm ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Version 1.8.0 has been released. This should include all the changes requested. Let me know if there are any issues with your usecase.
Yep, you’re absolutely right. I’ll try to work on getting this implemented tomorrow