mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-05-20 03:04:37 +00:00
Adds the supporting classes and interfaces for a breaker: Status, Stats, Bucket, Window, and HystrixStats. Fixes a bug with the `timeout` option where `false` was not provided as a valid value. Fixes the attributes of the main `CircuitBreaker` to not be symbols, but instead their correct types. This is a bit confusing when looking at the source of the lib, but while symbols are used extensively, they are not exported or made available via the class. They are only used internally and the classes attributes are exposed via getters. Fixes the global export of `promisify` and `stats` from the module as well as being tacked onto the default exported function. Beefs up the tests by copying examples used in the lib docs.