UNPKG
ahooks-v2
Version:
latest (2.10.15)
2.10.15
2.10.13
react hooks library
github.com/alibaba/hooks
alibaba/hooks
ahooks-v2
/
lib
/
useDocumentVisibility
/
index.d.ts
4 lines
(3 loc)
•
176 B
TypeScript
View Raw
1
2
3
4
declare
type
VisibilityState
=
'hidden'
|
'visible'
|
'prerender'
|
undefined
;
declare
function
useDocumentVisibility
(
):
VisibilityState
;
export
default
useDocumentVisibility;