UNPKG

mobx-react

Version:

React bindings for MobX. Create fully reactive components.

12 lines (11 loc) 475 B
import React from "react"; type Disposer = () => void; /** * @deprecated `disposeOnUnmount` is not compatible with React 18 and higher. */ export declare function disposeOnUnmount(target: React.Component<any, any>, propertyKey: PropertyKey): void; /** * @deprecated `disposeOnUnmount` is not compatible with React 18 and higher. */ export declare function disposeOnUnmount<TF extends Disposer | Array<Disposer>>(target: React.Component<any, any>, fn: TF): TF; export {};