Description
So first of all, if a decorator returns void instead of Function on strict mode typescript throws an error because of this, and it can't really be worked around., or used as a decorator in strict mode. So the type is wrong because of that.
microsoft/TypeScript#4534
https://stackoverflow.com/questions/36446480/typescript-decorator-reports-unable-to-resolve-signature-of-class-decorator-whe
The way I found it is that IDefineOptions is incorrect, in that it doesn't allow indexes with where conditions. This type definition is hosted outside the library, so it isn't as relevant but it causes making a table with decorators with partial indexes throw errors on typescript strict mode.
The quick workaround is to just set the where key under indexes as an any key on the object so typescript cant detect it. such as
['where' as any]