UNPKG
apply-ref
Version:
latest (1.0.0)
1.0.0
0.2.3
0.2.2
0.2.1
0.2.0
0.1.1
0.1.0
> Apply React refs
github.com/mitchellhamilton/apply-ref
mitchellhamilton/apply-ref
apply-ref
/
dist
/
declarations
/
src
/
index.d.ts
5 lines
(4 loc)
•
204 B
TypeScript
View Raw
1
2
3
4
5
import
{
Ref
}
from
"react"
;
declare
const
apply
: <T>
(
ref
:
Ref
<T>,
value
: T |
null
) =>
void
;
export
declare
const
applyRefs
: <T>
(
...
refs
:
Ref
<T>[]
) =>
(
value
: T |
null
) =>
void
;
export
default
apply;