Commit 61f672f
authored
More accurate typescript typings
According to the API, all but the `src` prop are optional, but the `Props` interface had no optional properties, making anyone who uses typescript **have** to pass everything (or it would throw a type error and will not compile).
I updated the interface to make the denote the non-required props as optional :)1 parent 3cd2277 commit 61f672f
1 file changed
+7
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
18 | 18 | | |
19 | | - | |
20 | | - | |
| 19 | + | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
0 commit comments