-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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 CreateObservableOptions
type
#2717
Export CreateObservableOptions
type
#2717
Conversation
🦋 Changeset detectedLatest commit: d47b5f3 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Thanks for your contribution. Please add the changeset as per the comment above. |
|
Sorry, I don't really understand. The options are documented here, so what do you mean by "undocumented"? These are the default options used by makeObservable - are we talking about different things? |
mobx/packages/mobx/src/api/observable.ts Lines 39 to 46 in 3980787
defaultDecorator , equals , proxy shouldn't be part of the public API
|
@urugator That's a different problem then in my opinion, because these options already are part of the public API. If you use makeObservable (or makeAutoObservable), the will already show up as valid options. We probably need a sub-type then? That would be a breaking change to the API, though, to my understanding. |
@mweststrate what's the intention/reasoning here? |
@urugator |
ee35503
to
f0d02b7
Compare
f0d02b7
to
ccfa589
Compare
@urugator I don't think I can do much more for the issue with the probably "left-over" props in the options As these props are already public and exporting the |
I think it is fine to merge this |
ccfa589
to
82509b7
Compare
Code change checklist
/docs
. For new functionality, at leastAPI.md
should be updatednpm run perf
)Fixes issue #2716