File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
packages/runtime-core/src Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -278,7 +278,7 @@ function resolvePropValue(
278
278
key : string ,
279
279
value : unknown
280
280
) {
281
- const opt = options [ key ] as any
281
+ const opt = options [ key ]
282
282
if ( opt != null ) {
283
283
const hasDefault = hasOwn ( opt , 'default' )
284
284
// default values
Original file line number Diff line number Diff line change @@ -408,11 +408,11 @@ export function cloneVNode<T, U>(
408
408
vnode : VNode < T , U > ,
409
409
extraProps ?: Data & VNodeProps
410
410
) : VNode < T , U > {
411
- const props = ( extraProps
411
+ const props = extraProps
412
412
? vnode . props
413
413
? mergeProps ( vnode . props , extraProps )
414
414
: extend ( { } , extraProps )
415
- : vnode . props ) as any
415
+ : vnode . props
416
416
// This is intentionally NOT using spread or extend to avoid the runtime
417
417
// key enumeration cost.
418
418
return {
@@ -571,7 +571,7 @@ export function mergeProps(...args: (Data & VNodeProps)[]) {
571
571
const incoming = toMerge [ key ]
572
572
if ( existing !== incoming ) {
573
573
ret [ key ] = existing
574
- ? [ ] . concat ( existing as any , toMerge [ key ] as any )
574
+ ? [ ] . concat ( existing as any , toMerge [ key ] )
575
575
: incoming
576
576
}
577
577
} else {
You can’t perform that action at this time.
0 commit comments