Commit be514a2
committed
fix(types): relax type constraints broken by stripInternal
Two fixes for type declarations that become invalid after @internal
properties are stripped from .d.ts output:
1. Relax SelectWithout generic constraint from K extends keyof T & string
to K extends string in MySQL, SingleStore, and SQLite select types.
The keyof T constraint fails when @internal-stripped properties like
'session' appear in excluded method lists but are absent from the
emitted type. Omit<> already handles missing keys safely.
2. Remove implements PgPolicyConfig/GelPolicyConfig from PgPolicy/GelPolicy
class declarations. The optional config properties (as?, for?) are
declared as non-optional readonly in the class, and @internal properties
are stripped, making the implements clause invalid. The class remains
structurally compatible without the clause.1 parent e8e6edf commit be514a2
5 files changed
Lines changed: 5 additions & 5 deletions
File tree
- drizzle-orm/src
- gel-core
- mysql-core/query-builders
- pg-core
- singlestore-core/query-builders
- sqlite-core/query-builders
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
246 | | - | |
| 246 | + | |
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
231 | | - | |
| 231 | + | |
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
238 | | - | |
| 238 | + | |
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
| |||
0 commit comments