Skip to content

Commit

Permalink
Allow lazy component to return null in TypeScript (#772)
Browse files Browse the repository at this point in the history
Types #636.
  • Loading branch information
hasparus authored and jorgebucaran committed Oct 25, 2018
1 parent bb0d38c commit 0d23a35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hyperapp.d.ts
Expand Up @@ -75,7 +75,7 @@ export type ActionsType<State, Actions> = {
* @memberOf [App] * @memberOf [App]
*/ */
export interface View<State, Actions> { 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. /** The app() call creates and renders a new application.
Expand Down

0 comments on commit 0d23a35

Please sign in to comment.