UNPKG
react-box-overflow
Version:
latest (0.0.1)
0.0.1
Headless UI for automatically collapsing boxes when overflow in React.
react-box-overflow
/
dist
/
esm
/
useRefFn.d.ts
8 lines
(7 loc)
•
248 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
/** *
@author
shunzi <tobyzsj
@gmail
.com> *
@date
2024-03-29 16:53:37 */
type
AnyFunction
=
(
...
param
:
any
) =>
any
;
export
declare
function
useRefFn<
FN
extends
AnyFunction
>(
fn
:
FN
):
(
...
params
:
Parameters
<FN>
) =>
void
;
export
{};