Skip to content

Commit 6535631

Browse files
authored
Merge pull request #64 from Lemoncode/fix-typings-config-optional-params
fix typings
2 parents 75691a8 + f366536 commit 6535631

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-promise-tracker",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"description": "Simple React Promise tracker Hook/HOC helper to add loading spinner indicators",
55
"keywords": [
66
"react",

src/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ export function trackPromise(promise: Promise<any>): Promise<any>;
1717
*/
1818

1919
interface Config {
20-
area: string;
21-
delay: number;
20+
area?: string;
21+
delay?: number;
2222
}
2323

2424
/**

0 commit comments

Comments
 (0)