Permalink
Browse files

Improve JSX typing support again! (#787)

Add missing null to key type, so we're able to extend React.Key type.
  • Loading branch information...
nmpribeiro authored and jorgebucaran committed Dec 3, 2018
1 parent 3ae7d86 commit 61addd8d1ce1436b8c8d601e010cfb89dbd3eae2
Showing with 1 addition and 1 deletion.
  1. +1 −1 hyperapp.d.ts
@@ -10,7 +10,7 @@ export interface VNode<Attributes = {}> {
nodeName: string
attributes?: Attributes
children: Array<VNode | string>
key: string | number
key: string | number | null
}
/** A Component is a function that returns a custom VNode or View.

0 comments on commit 61addd8

Please sign in to comment.