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

Flow JS Types not longer exported in package build? (Upgrade MobX 4 -> 6) #3802

Closed
alexander-schranz opened this issue Nov 25, 2023 · 1 comment

Comments

@alexander-schranz
Copy link

I currently try to update Mobx 4 to 6. In my js configuration before I did import the types from:

import type {IObservableValue} from 'mobx/dist/mobx';

@observer
class MediaOverview extends React.Component<ViewProps> {
    collectionPage: IObservableValue<number> = observable.box();
    mediaPage: IObservableValue<number> = observable.box();
    locale: IObservableValue<string> = observable.box();

But it seems like there exist not longer a flow typing in the exported package as the flow-types not there.

Intended outcome:

That the flow types are still exported:

https://github.com/mobxjs/mobx/tree/mobx%406.10.2/packages/mobx/flow-typed

Actual outcome:

No flow types exported:

"files": [
"src",
"dist",
"LICENSE",
"CHANGELOG.md",
"README.md"
],

How to reproduce the issue:

Try to import flow types for mobx.

Versions

6.10.2 and 6.11.0 tested.

@mweststrate
Copy link
Member

mweststrate commented Nov 25, 2023 via email

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

No branches or pull requests

2 participants