From 08373d33736edfbe2d08035c41d24e9de582ec42 Mon Sep 17 00:00:00 2001 From: Teoxoy <28601907+Teoxoy@users.noreply.github.com> Date: Thu, 20 Sep 2018 03:01:56 +0200 Subject: [PATCH] updated Container.addChild If you pass the args to addChild via spread operator over an array you will get: [ts] Expected at least 1 arguments, but got 0 or more. I think this is the best way to solve it. --- types/pixi.js/index.d.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/types/pixi.js/index.d.ts b/types/pixi.js/index.d.ts index 5e1ca464e2..17913f4903 100644 --- a/types/pixi.js/index.d.ts +++ b/types/pixi.js/index.d.ts @@ -290,8 +290,7 @@ declare namespace PIXI { protected onChildrenChange: (...args: any[]) => void; addChild( - child: T, - ...additionalChildren: DisplayObject[] + ...children: T[] ): T; addChildAt(child: T, index: number): T; swapChildren(child: DisplayObject, child2: DisplayObject): void;