Closed timruffles closed 8 years ago
@timruffles yes, the strictNullChecks
should be the reason why you experience the error. As I finalize the migration from this repo to DefinitelyTypes/types-2.0 and by implication npm @types, this is a known open item to complete. I am going to transfer the effort to tackling it from here to DT, as it saves the added synchronization effort between the two repos, now that the module-level migration is essentially complete.
I did not wan to vouch for the fact that the entire set of definitions validated for use with strictNullChecks
. In some cases the published API docs are not explicit enough without reviewing the actual source code of the respective D3 module.
So, I will carry this over to a new DT issue and copy you, when I open it.
I am going to leave this issue open until I have migrated it and referenced it. Thx for understanding.
As discussed, the issue has been migrated to DefinitelyTyped as a work item under issue 11365
Using typescript 2.0.2, I see the following errors on compilation:
with the following compiler config:
I think
BaseType
needs to be made nullable