This project is read-only.

Cannot implement interface Array from lib.d.ts (v0.9.5)

Topics: General
Dec 6, 2013 at 3:38 PM
Edited Dec 8, 2013 at 3:36 PM
I have declared class called ArrayConstructor (declared, so no implementation of methods.. ). ArrayConstructor implements interface Array (from lib.d.ts). I coppied all declaration of Array (from lib.d.ts) and pasted to ArrayConstructor.

Example is here (typescript playground):

Why is there error with concat method?
Dec 6, 2013 at 6:20 PM
This looks like a bug to me. I think we may also need to change the Array.concat signature to not use a constraint in the lib.d.ts typing, which might be related. Copying this to a work item.
Dec 6, 2013 at 6:20 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.