[improvement] enable tsx type checking for functional component (#2764)

This commit is contained in:
neverland
2019-02-16 21:58:10 +08:00
committed by GitHub
parent 2ad525c45d
commit af0fb98c9e
3 changed files with 20 additions and 14 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ const inheritKey = [
const mapInheritKey: ObjectIndex = { nativeOn: 'on' };
// inherit partial context, map nativeOn to on
export function inherit(context: Context, inheritListeners: boolean): InheritContext {
export function inherit(context: Context, inheritListeners?: boolean): InheritContext {
const result = inheritKey.reduce(
(obj, key) => {
if (context.data[key]) {