question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Would 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:closed
  • Created 4 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
phryneascommented, Dec 10, 2019

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 export SliceCaseReducerDefinitions, which relies on PayloadActions 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.

1reaction
wuifdesigncommented, Jan 2, 2020

@phryneas thx, i already saw it, and i will try it after holidays

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found