Skip to content

Fix ReservedSql type to extend ISql instead of Sql#1161

Open
macrosak wants to merge 2 commits intoporsager:masterfrom
macrosak:types/fix-reservedsql-type-with-isql
Open

Fix ReservedSql type to extend ISql instead of Sql#1161
macrosak wants to merge 2 commits intoporsager:masterfrom
macrosak:types/fix-reservedsql-type-with-isql

Conversation

@macrosak
Copy link
Copy Markdown

@macrosak macrosak commented Apr 2, 2026

ReservedSql incorrectly extends Sql, exposing methods like begin(), listen(), subscribe(), reserve(), end(), etc. that do not exist at runtime on reserved connections. This changes it to extend ISql, matching the approach used for TransactionSql in #1144.

Fixes #713

Depends on #1144

sep2 and others added 2 commits January 7, 2026 14:11
`Omit` will not work, a common interface `ISql` for `Sql` and `TransactionSql` is introduced.

microsoft/TypeScript#41362
ReservedSql incorrectly extends Sql, exposing methods like begin(),
listen(), subscribe(), reserve(), end(), etc. that do not exist at
runtime on reserved connections. Change it to extend ISql, matching
the approach used for TransactionSql.

Fixes porsager#713
@macrosak macrosak force-pushed the types/fix-reservedsql-type-with-isql branch from 70adfe6 to da251e7 Compare April 2, 2026 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ReservedSql appears to have methods it does not have

2 participants