Skip to content
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

Export Type Definitions From Exported Packages #421

Closed
ctaylor4874 opened this issue Mar 10, 2020 · 2 comments
Closed

Export Type Definitions From Exported Packages #421

ctaylor4874 opened this issue Mar 10, 2020 · 2 comments

Comments

@ctaylor4874
Copy link

Would it be possible to export the type definitions for reselect? I'm trying to define types using the exported Selector type from reselect but it is not exported. Here's what I'd like to be able to do:

import { Selector } from "@reduxjs/toolkit";

export type MySelector = Selector<{isActive: true}, boolean>
@markerikson
Copy link
Collaborator

Yeah, I can throw that into the next beta as well. In the meantime, you can directly import it from reselect yourself.

@markerikson
Copy link
Collaborator

Done in 1.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants