UNPKG
ue3
Version:
latest (1.0.1)
1.0.1
1.0.0
ue3 build your own vue for learning.
github.com/KesionX/ue3
KesionX/ue3
ue3
/
src
/
types
/
ref.ts
11 lines
(8 loc)
•
226 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
// declare const _refBrand: unique symbol;
export
interface
Ref
<T> {
value
: T; }
export
declare
type
ToRef
<T> = T
extends
Ref
<
any
> ? T :
Ref
<T>
export
declare
type
ToRefs
<T =
any
> = { [K
in
keyof T]:
ToRef
<T[K]>; };