mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-04-28 08:24:32 +00:00
The documentation gets weird about the API promising to return *some* kind of value that evaluates to false, even if that might be the number zero. The original types author expressed that as CouchbaseError | number, but that makes it seem like the result could be some non-zero number. I don't know whether the library actually issues callback(0) calls, but to make it play better with normal callbacks (err?: Error), we will act as if it uses null instead of zero.