Skip to content

Commit 227be22

Browse files
committed
Make area param optional
1 parent aa875c5 commit 227be22

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<T>(promise: Promise<T>, area: string): Promise<T>;
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)