-
Notifications
You must be signed in to change notification settings - Fork 333
Fix https://github.com/porsager/postgres/issues/1143 #1144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
`Omit` will not work, a common interface `ISql` for `Sql` and `TransactionSql` is introduced. microsoft/TypeScript#41362
|
Won't that include all properties that aren't valid for TransactionSql ? I think the proper way is to make an explicit definition of TransactionSql instead of inherit. Perhaps better to use Type instead of Interface. |
|
Only actual properties are included in the interfaces. Properties not in the runtime
I used |
|
It would be good to add a unit test, like what is common in DefinitelyTyped. |
|
To prevent the same hazard as previous PR, can some more people with typescript knowledge approve this? |
|
@porsager I opened the original issue (#1143), and I can confirm that this looks good to me. I've also tested this in my project, and it resolves the issue that I was seeing. @sep2's line of thinking, of moving all shared properties ( |
|
The only nitpick I would have is that since there's already an existing interface called A more descriptive name might be |
Omitwill not work, a common interfaceISqlforSqlandTransactionSqlis introduced.microsoft/TypeScript#41362