Closed borracciaBlu closed 1 year ago
Hi @medikoo ,
sorry, deeply shame about it. When options
was null it was matching the case for {isOptional?: boolean}
and so thinking was in a T | null
scenario instead of T
.
This should fix it.
Let me know if you have any comment on this.
In local I'm using dtslint
as in DefinitelyTyped
but I neglected to test it against actual code, and that was the big mistake.
I guess the lesson would be that the ultimate test is actual code in ts
and have tsc
happy at compile time...
Codecov Report
:mega: Codecov can now indicate which changes are the most critical in Pull Requests. Learn more