refactor(types): use stricter settings

fix #847
This commit is contained in:
Evan You
2020-03-23 11:08:22 -04:00
parent b3890a93e3
commit b8c1be18f3
27 changed files with 385 additions and 381 deletions

View File

@@ -11,11 +11,11 @@ import { isArray, looseEqual, looseIndexOf } from '@vue/shared'
const getModelAssigner = (vnode: VNode): ((value: any) => void) =>
vnode.props!['onUpdate:modelValue']
function onCompositionStart(e: CompositionEvent) {
function onCompositionStart(e: Event) {
;(e.target as any).composing = true
}
function onCompositionEnd(e: CompositionEvent) {
function onCompositionEnd(e: Event) {
const target = e.target as any
if (target.composing) {
target.composing = false