ktongue's picture
download
raw
422 Bytes
/**
* Inspired by https://github.com/facebook/react/issues/14099#issuecomment-440013892
* See RFC in https://github.com/reactjs/rfcs/pull/220
*/
declare function useEventCallback<Fn extends (...args: any[]) => any = (...args: unknown[]) => unknown>(fn: Fn): Fn;
declare function useEventCallback<Args extends unknown[], Return>(fn: (...args: Args) => Return): (...args: Args) => Return;
export default useEventCallback;

Xet Storage Details

Size:
422 Bytes
·
Xet hash:
7bce5233818a78b7c274b04ca7f29364c67df6af4542e68277f937b2e782dc1b

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.