Skip to content

Commit f879754

Browse files
committed
Added definition for reflectStatus + changelog
1 parent 666d774 commit f879754

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## next version
4+
5+
* Added `reflectStatus()` function.
6+
37
## 1.1.4
48

59
* Fixed typescript declarations.

modern-async.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,10 @@ declare module "timeoutPrecise" {
220220
export default timeoutPrecise;
221221
function timeoutPrecise<T>(fct: () => Promise<T> | T, amount: number): Promise<T>;
222222
}
223+
declare module "reflectStatus" {
224+
export default reflectStatus;
225+
function reflectStatus<T>(fct: () => Promise<T> | T): Promise<PromiseSettledResult<T>>;
226+
}
223227
declare module "modern-async" {
224228
export { default as asyncIterableWrap } from "asyncIterableWrap";
225229
export { default as asyncRoot } from "asyncRoot";
@@ -265,4 +269,5 @@ declare module "modern-async" {
265269
export { default as TimeoutError } from "TimeoutError";
266270
export { default as timeoutPrecise } from "timeoutPrecise";
267271
export { default as toArray } from "toArray";
272+
export { default as reflectStatus } from "reflectStatus";
268273
}

0 commit comments

Comments
 (0)