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
{{ message }}
Repository navigation
Regression: ZenStack v3 does not properly generate TypeScript string literal discriminators for delegated models #2352
Description and expected behavior
After migrating from ZenStack v2 to v3, there is no longer a type-safe way to discriminate TypeScript types generated from delegated models.
model Base {
id String @id @default(cuid(2))
type String
@@delegate(type)
}
model Foo extends Base {
foo Number
}
model Bar extends Base {
bar String
}
Activity
ymc9 commentedon Apr 3, 2026
Fixed in 3.5.4