Skip to content

Commit b502af5

Browse files
authored
Merge pull request #67 from Lemoncode/#65-fix-typing
Fix typing of trackPromise function
2 parents 6535631 + 227be22 commit b502af5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)