mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
types: fix missing VisibilityState after typescript 4.6.0 (#10370)
This commit is contained in:
parent
bc7afd7037
commit
b0849c03e5
@ -1,6 +1,8 @@
|
|||||||
import { ref, Ref } from 'vue';
|
import { ref, Ref } from 'vue';
|
||||||
import { inBrowser } from '../utils';
|
import { inBrowser } from '../utils';
|
||||||
|
|
||||||
|
type VisibilityState = "hidden" | "visible";
|
||||||
|
|
||||||
let visibility: Ref<VisibilityState>;
|
let visibility: Ref<VisibilityState>;
|
||||||
|
|
||||||
export function usePageVisibility() {
|
export function usePageVisibility() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user