Skip to content

Commit aa875c5

Browse files
committed
Fix typing of trackPromise function
1 parent 6535631 commit aa875c5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import * as React from "react";
99
* @param promise Input promise to be tracked.
1010
* @returns It returns the same promise as input.
1111
*/
12-
export function trackPromise(promise: Promise<any>): Promise<any>;
12+
export function trackPromise<T>(promise: Promise<T>, area: string): Promise<T>;
1313

1414
/**
1515
* Configuration contract: user can setup areas (display more than one spinner) or delay when

0 commit comments

Comments
 (0)