Skip to content

Commit b9a0297

Browse files
authored
improve the transitionOpacity type (#1)
Co-authored-by: bcastlel <[email protected]>
1 parent 6740283 commit b9a0297

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ interface UseFixedHeaderOptions {
169169
*
170170
* @default false
171171
*/
172-
transitionOpacity: Ref<boolean> | boolean
172+
transitionOpacity: boolean | Ref<boolean> | ComputedRef<boolean>
173173
}
174174
```
175175

packages/vue-use-fixed-header/src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ export interface UseFixedHeaderOptions<T = any> {
2222
*
2323
* @default false
2424
*/
25-
transitionOpacity: boolean
25+
transitionOpacity: boolean | Ref<boolean> | ComputedRef<boolean>
2626
}

0 commit comments

Comments
 (0)