From b0849c03e55163cf6461c11870a6f215d9ae7dbc Mon Sep 17 00:00:00 2001 From: neverland Date: Wed, 9 Mar 2022 18:43:08 +0800 Subject: [PATCH] types: fix missing VisibilityState after typescript 4.6.0 (#10370) --- packages/vant-use/src/usePageVisibility/index.ts | 2 ++ 1 file changed, 2 insertions(+) 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() {