UNPKG

316 BTypeScriptView Raw
1import React from "react";
2declare type Disposer = () => void;
3export declare function disposeOnUnmount(target: React.Component<any, any>, propertyKey: PropertyKey): void;
4export declare function disposeOnUnmount<TF extends Disposer | Array<Disposer>>(target: React.Component<any, any>, fn: TF): TF;
5export {};