How would you tell TypeScript to use Datejs as Date
instead of the builtin Date
object?
I tried adding a reference to the js file and declaring Date as type any
i.e. declare var Date: any;
but this did nothing to fix the error.
EDIT: I found this question, but it talks about specifying a method to include. I'm wondering if it's possible to leave it open ended and simply turn off type checking for Date;