© 2026 Hedgehog Software, LLC
type UserId = `user-${string}`
const UserId = type('`user-${string}`') // doesn't work
const UserId = type`user-${type('string')}`
const UserId = type('string-userId')
// Subtypes like 'email' are inferred like 'string' but provide additional validation at runtime. email: "string.email",