You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Many of the QueryInterface methods accept string | { tableName: string, schema: string } as the first argument. For instance, the following is valid and will run successfully.
queryInterface.bulkDelete({ tableName: 'foo', schema: 'bar' } as any, {}, {});
However, the typings only support a string as the first argument.
To Reproduce
Create a migration with the above code using typescript
What do you expect to happen?
The code should compile without error
What is actually happening?
TSC will not compile without casting to any
Environment
TypeScript version: XXX
Tested with latest release: 3.4.5
No
Yes, specify that version:
The text was updated successfully, but these errors were encountered:
papb
added
the
type: typescript
For issues and PRs. Things that involve typescript, such as typings and intellisense.
label
Jul 22, 2019
This issue has been automatically marked as stale because it has been open for 14 days without activity. It will be closed if no further activity occurs within the next 14 days. If this is still an issue, just leave a comment or remove the "stale" label. 🙂
Many of the QueryInterface methods accept
string | { tableName: string, schema: string }
as the first argument. For instance, the following is valid and will run successfully.However, the typings only support a
string
as the first argument.To Reproduce
Create a migration with the above code using typescript
What do you expect to happen?
The code should compile without error
What is actually happening?
TSC will not compile without casting to any
Environment
TypeScript version: XXX
Tested with latest release: 3.4.5
The text was updated successfully, but these errors were encountered: