diff --git a/src/component.ts b/src/component.ts index f583ffd..eeec4a8 100644 --- a/src/component.ts +++ b/src/component.ts @@ -34,7 +34,7 @@ export function componentFactory ( options[key] = proto[key] return } - const descriptor = Object.getOwnPropertyDescriptor(proto, key) + const descriptor = Object.getOwnPropertyDescriptor(proto, key)! if (typeof descriptor.value === 'function') { // methods (options.methods || (options.methods = {}))[key] = descriptor.value