( target: T, )
| 207 | */ |
| 208 | /*@__NO_SIDE_EFFECTS__*/ |
| 209 | export function readonly<T extends object>( |
| 210 | target: T, |
| 211 | ): DeepReadonly<UnwrapNestedRefs<T>> { |
| 212 | return createReactiveObject( |
| 213 | target, |
| 214 | true, |
| 215 | readonlyHandlers, |
| 216 | readonlyCollectionHandlers, |
| 217 | readonlyMap, |
| 218 | ) |
| 219 | } |
| 220 | |
| 221 | /** |
| 222 | * Shallow version of {@link readonly}. |