From b9a029723711d25c0a389dff948d7ca4eca42995 Mon Sep 17 00:00:00 2001 From: bcastlel <98835787+bcastlel@users.noreply.github.com> Date: Wed, 10 Jan 2024 22:39:21 +0400 Subject: [PATCH] improve the transitionOpacity type (#1) Co-authored-by: bcastlel --- README.md | 2 +- packages/vue-use-fixed-header/src/types.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3fb0340..abed325 100644 --- a/README.md +++ b/README.md @@ -169,7 +169,7 @@ interface UseFixedHeaderOptions { * * @default false */ - transitionOpacity: Ref | boolean + transitionOpacity: boolean | Ref | ComputedRef } ``` diff --git a/packages/vue-use-fixed-header/src/types.ts b/packages/vue-use-fixed-header/src/types.ts index b73eeb6..17190b2 100644 --- a/packages/vue-use-fixed-header/src/types.ts +++ b/packages/vue-use-fixed-header/src/types.ts @@ -22,5 +22,5 @@ export interface UseFixedHeaderOptions { * * @default false */ - transitionOpacity: boolean + transitionOpacity: boolean | Ref | ComputedRef }