Commit ac434be
William Sedlacek
fix: More specific return types.
Having a generic return type like `Function` is like using `any` it is removing type safety and causes Type Safe environments like NestJS to through errors. It is much better to specify the the return type of this higher order function.
Generally I would let TypeScript infer it without the type def, however since you had it explicitly stated before I simply changed it to be more specific.1 parent 73dd716 commit ac434be
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
0 commit comments