Commit b7b472e
fix(model.d): fix findAndCountAll.count type (#13736)
* fix(model.d): fix findAndCountAll.count type
`findAndCountAll` should only return `count` as an array when the `group` option is provided.
This means in that case, `options` is no longer optional because when `options` is not provided, it's never a group count.
I also rearrange `findAndCountAll` order to ensure the single count overload is applied first.
* refactor(model): add fix type for findAllAndCount
* refactor(model): tidy up type with SetRequired
Co-authored-by: Sascha Depold <[email protected]>1 parent 7a3f63a commit b7b472e
1 file changed
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
1955 | 1956 | | |
1956 | 1957 | | |
1957 | 1958 | | |
1958 | | - | |
1959 | | - | |
| 1959 | + | |
| 1960 | + | |
1960 | 1961 | | |
1961 | 1962 | | |
1962 | | - | |
1963 | | - | |
| 1963 | + | |
| 1964 | + | |
1964 | 1965 | | |
1965 | 1966 | | |
1966 | 1967 | | |
| |||
0 commit comments