mobx-decorators icon indicating copy to clipboard operation
mobx-decorators copied to clipboard

Missing export @allObservable function in Typescript

Open hanc2006 opened this issue 5 years ago • 4 comments

Hi, the @allObservable export is missing in the Typescript definition file index.d.ts Something like:

export function allObservable(options?: ({only?: Array<string>, except?: Array<string>})): any;

hanc2006 avatar Jan 15 '20 13:01 hanc2006

Thanks, will add soon

farwayer avatar Jan 17 '20 05:01 farwayer

Hi, thanks for this library ! Would be inclined to add this type for Typescript soon ?

leoperria avatar Jun 30 '20 12:06 leoperria

Hey, this feature would be really helpful on my current project, as I need to make a whole class observable, but since it its in Typescript I cannot use that option. Thanks in advance =)

brunof17 avatar Jul 17 '20 16:07 brunof17

Adding TS def is not the problem. But the last time I tried to use @allObservable in TS something was wrong and did not work as expected. Will try to find some time to check it again.

farwayer avatar Jul 20 '20 11:07 farwayer