File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -414,4 +414,4 @@ export const toReactive = <T extends unknown>(value: T): T =>
414
414
* @param value - The value for which a readonly proxy shall be created.
415
415
*/
416
416
export const toReadonly = < T extends unknown > ( value : T ) : T =>
417
- isObject ( value ) ? readonly ( value as Record < any , any > ) : value
417
+ isObject ( value ) ? readonly ( value ) : value
Original file line number Diff line number Diff line change @@ -432,7 +432,7 @@ export function toRef(
432
432
if ( isRef ( source ) ) {
433
433
return source
434
434
} else if ( isFunction ( source ) ) {
435
- return new GetterRefImpl ( source as ( ) => unknown ) as any
435
+ return new GetterRefImpl ( source ) as any
436
436
} else if ( isObject ( source ) && arguments . length > 1 ) {
437
437
return propertyToRef ( source , key ! , defaultValue )
438
438
} else {
You can’t perform that action at this time.
0 commit comments