Skip to content

Commit

Permalink
Add boolean to ComponentChild in preact.d.ts and remove object from type
Browse files Browse the repository at this point in the history
Fixes #1215.
  • Loading branch information
Kaspar Etter committed Sep 24, 2018
1 parent b5c4a36 commit fee2473
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/preact.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ export as namespace preact;
declare namespace preact {
type Key = string | number;
type Ref<T> = (instance: T) => void;
type ComponentChild = VNode<any> | string | number | null;
type ComponentChildren = ComponentChild[] | ComponentChild | object | string | number | null;
type ComponentChild = VNode<any> | string | number | boolean | null;
type ComponentChildren = ComponentChild[] | ComponentChild;

/**
* @deprecated
Expand Down

0 comments on commit fee2473

Please sign in to comment.