diff --git a/packages/vant-use/src/usePageVisibility/index.ts b/packages/vant-use/src/usePageVisibility/index.ts index e63996815..883c606b1 100644 --- a/packages/vant-use/src/usePageVisibility/index.ts +++ b/packages/vant-use/src/usePageVisibility/index.ts @@ -1,6 +1,8 @@ import { ref, Ref } from 'vue'; import { inBrowser } from '../utils'; +type VisibilityState = "hidden" | "visible"; + let visibility: Ref; export function usePageVisibility() {