valentinkononov / ts-runtime-checker

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

Incorrect work with arrays #7

Open Semigradsky opened 4 years ago

Semigradsky commented 4 years ago

Incorrect call doesn't thrown error:

    @Typed()
    public x(foo: string[]): void {
...
    x([1, 2, 3]);
valentinkononov commented 4 years ago

thanks for the issue! I've added checks for array itself, but due to TS metadata limitations there is no runtime information about what is type of array member. so it will hang for awhile. but array check itself if added