Permalink
Browse files

Allow lazy component to return null in TypeScript (#772)

Types #636.
  • Loading branch information...
hasparus authored and jorgebucaran committed Oct 25, 2018
1 parent bb0d38c commit 0d23a35a65b23e8dfa5cac15d3d166bac18d51b1
Showing with 1 addition and 1 deletion.
  1. +1 −1 hyperapp.d.ts
@@ -75,7 +75,7 @@ export type ActionsType<State, Actions> = {
* @memberOf [App]
*/
export interface View<State, Actions> {
(state: State, actions: Actions): VNode<object>
(state: State, actions: Actions): VNode<object> | null
}
/** The app() call creates and renders a new application.

0 comments on commit 0d23a35

Please sign in to comment.