I'm not sure that is your purpose.
makeAutoObservable
Usage:
makeAutoObservable(target, overrides?, options?)
export function makeAutoObservable<T extends Object, AdditionalKeys extends PropertyKey = never>(
target: T,
excludes?: AnnotationsMap<T, NoInfer<AdditionalKeys>>,
options?: CreateObservableOptions
): T {
overrides in documentation, excludes in code
I think overrides and excludes are different. It's confusing.
If you can, please PR corrections for such minor inconsistencies when you spot them. In my opinion overrides is more suited since you can in fact override, and not just exclude (false) when using makeAutoObservable.
It was probably meant to get changed, but got overlooked. It's hard to get to zero overall, let alone after a major revision.
thank you for your answering. I will do PR.
Most helpful comment
thank you for your answering. I will do PR.