mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-11 22:37:31 +08:00
Error can be an error object or null at least (and possibly some other values, like undefined, though those aren’t documented). There was already a test with error being null, but it was passing only because strictNullChecks were off. Now that strictNullChecks are on, this must be changed.