Skip to content

Commit

Permalink
chore: correct type example (#1784)
Browse files Browse the repository at this point in the history
  • Loading branch information
holazz committed Jul 8, 2022
1 parent 4e38abc commit 22242ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/shared/utils/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ export type RemoveableRef<T> = RemovableRef<T>
export type MaybeRef<T> = T | Ref<T>

/**
* Maybe it's a ref, or a getter function
* Maybe it's a ref, or a plain value, or a getter function
*
* ```ts
* type MaybeRef<T> = T | Ref<T>
* type MaybeComputedRef<T> = T | Ref<T> | (() => T)
* ```
*/
export type MaybeComputedRef<T> = T extends Function
Expand Down

0 comments on commit 22242ac

Please sign in to comment.