Skip to content

Commit

Permalink
Add missing edge case for children typing (#561)
Browse files Browse the repository at this point in the history
  • Loading branch information
agubler authored Oct 22, 2019
1 parent 4e6ce5e commit 8334cbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/interfaces.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ export interface MiddlewareResultFactory<Props, Children, Middleware, ReturnValu
export interface DefaultChildrenWNodeFactory<W extends WNodeFactoryTypes> {
(properties: W['properties'], children?: W['children'] extends any[] ? W['children'] : [W['children']]): WNode<W>;
new (): {
__properties__: W['properties'] & { __children__?: DNode | DNode[] };
__properties__: W['properties'] & { __children__?: DNode | DNode[] | (DNode | DNode[])[] };
};
properties: W['properties'];
children: W['children'];
Expand Down Expand Up @@ -473,7 +473,7 @@ export interface WNode<W extends WidgetBaseTypes = any> {
/**
* DNode children
*/
children: any[];
children: DNode[];

/**
* The type of node
Expand Down

0 comments on commit 8334cbe

Please sign in to comment.