(value: T)
| 418 | * @see {@link https://vuejs.org/api/reactivity-advanced.html#markraw} |
| 419 | */ |
| 420 | export function markRaw<T extends object>(value: T): Raw<T> { |
| 421 | if (!hasOwn(value, ReactiveFlags.SKIP) && Object.isExtensible(value)) { |
| 422 | def(value, ReactiveFlags.SKIP, true) |
| 423 | } |
| 424 | return value |
| 425 | } |
| 426 | |
| 427 | /** |
| 428 | * Returns a reactive proxy of the given value (if possible). |