valentinkononov / ts-runtime-checker

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

Incorrect work with optional parameter #6

Open Semigradsky opened 4 years ago

Semigradsky commented 4 years ago

The correct call throws an error:

Parameters length: 1 is different from arguments length: 0
    @Typed()
    public x(foo?: string): void {
...
    x();