Export Types
See original GitHub issueWould it be possible to export the types used in this project. i want to extend some functionallity and need to copy&paste many of them to my code, so i can access them.
i.e: CaseReducerActions
, RestrictCaseReducerDefinitionsToMatchReducerAndPrepare
, …
Issue Analytics
- State:
- Created 4 years ago
- Comments:11 (6 by maintainers)
Top Results From Across the Web
Documentation - Modules - TypeScript
Any declaration (such as a variable, function, class, type alias, or interface) can be exported by adding the export keyword.
Read more >export - JavaScript - MDN Web Docs
Every module can have two different types of export, named export and default export. You can have multiple named exports per module but ......
Read more >export type * from 'somewhere' #48508 - GitHub
The way to think about type-only imports and exports is that they have identical resolution semantics to their non-type-only counterparts, but ...
Read more >What is `export type` in Typescript? - javascript - Stack Overflow
This is a type alias - it's used to give another name to a type. In your example, feline will be the type...
Read more >Types of export - Australian Border Force
Export of money and collectible currency · Export of fodder · Export of human remains or ashes · Export of software · Goods...
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
Hi @wuifdesign, some of these types are deliberately not exported, as they are really just useful internally and we might replace them with simpler types as we find better solutions. As soon as we export an internal type, essentially we have to support it forever and can never change it to not break things for people. Especially
RestrictCaseReducerDefinitionsToMatchReducerAndPrepare
is a type that I am expecting to remove soon using the technique displayed in this playground.Exporting
CaseReducerActions
would also require us to exportSliceCaseReducerDefinitions
, which relies onPayloadActions
and some of these might also become obsolete using the same technique.Could you please explain with a few code snippets what you are trying to do? Maybe I can help you around your problems with only our exported types - and maybe that’ll even lead to something we can add to our TypeScript documentation afterwards 😃
PS: using those types should not be necessary for you and should even be avoided, as overspecifying your types instead of using inteference will erase useful type information and make your types overall worse in the end.
@phryneas thx, i already saw it, and i will try it after holidays