valentinkononov / ts-runtime-checker

Runtime Checks for Typescript projects
MIT License
8 stars 1 forks source link

Incorrect work with `Date` #1

Closed Semigradsky closed 4 years ago

Semigradsky commented 4 years ago

The correct call throws an error:

Argument: Wed Feb 19 2020 15:34:23 GMT+0300 (Moscow Standard Time) has type: object different from expected type: string.
    @Typed()
    public foo(a: Date): void {
valentinkononov commented 4 years ago

this is done, version 0.1.0