| 27 | export declare const RawSymbol: unique symbol |
| 28 | |
| 29 | export interface Ref<T = any, S = T> { |
| 30 | get value(): T |
| 31 | set value(_: S) |
| 32 | /** |
| 33 | * Type differentiator only. |
| 34 | * We need this to be in public d.ts but don't want it to show up in IDE |
| 35 | * autocomplete, so we use a private Symbol instead. |
| 36 | */ |
| 37 | [RefSymbol]: true |
| 38 | } |
| 39 | |
| 40 | /** |
| 41 | * Checks if a value is a ref object. |
nothing calls this directly
no outgoing calls
no test coverage detected