We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6535631 + 227be22 commit b502af5Copy full SHA for b502af5
src/index.d.ts
@@ -9,7 +9,7 @@ import * as React from "react";
9
* @param promise Input promise to be tracked.
10
* @returns It returns the same promise as input.
11
*/
12
-export function trackPromise(promise: Promise<any>): Promise<any>;
+export function trackPromise<T>(promise: Promise<T>, area?: string): Promise<T>;
13
14
/**
15
* Configuration contract: user can setup areas (display more than one spinner) or delay when
0 commit comments