}
if (asAttr) {
decoder.innerHTML = `<div foo="${raw.replace(/"/g, '"')}">`
- return decoder.children[0].getAttribute('foo') as string
+ return decoder.children[0].getAttribute('foo')!
} else {
decoder.innerHTML = raw
- return decoder.textContent as string
+ return decoder.textContent!
}
}
get value() {
const val = this._object[this._key]
- return val === undefined ? (this._defaultValue as T[K]) : val
+ return val === undefined ? this._defaultValue! : val
}
set value(newVal) {
slotScopeIds: string[] | null,
optimized: boolean
) => {
- isSVG = isSVG || (n2.type as string) === 'svg'
+ isSVG = isSVG || n2.type === 'svg'
if (n1 == null) {
mountElement(
n2,
if (__COMPAT__) {
defineLegacyVNodeProperties(cloned as VNode)
}
- return cloned as any
+ return cloned
}
/**