(v: Ref)
| 195 | } |
| 196 | |
| 197 | function genRefFlag(v: Ref) { |
| 198 | if (isShallow(v)) { |
| 199 | return `ShallowRef` |
| 200 | } |
| 201 | if ((v as any).effect) { |
| 202 | return `ComputedRef` |
| 203 | } |
| 204 | return `Ref` |
| 205 | } |
| 206 | |
| 207 | if ((window as any).devtoolsFormatters) { |
| 208 | ;(window as any).devtoolsFormatters.push(formatter) |