Infer TypeScript type from BSB type definition with recursion depth limiting. Provides compile-time type safety when using BSB schemas. Limits recursion to prevent "excessively deep" errors.
const UserSchema = bsb.object({ id: bsb.uuid(), name: bsb.string(), age: optional(bsb.int32()),});type User = InferBSBType<typeof UserSchema>;// Results in: { id: string; name: string; age?: number } Copy
const UserSchema = bsb.object({ id: bsb.uuid(), name: bsb.string(), age: optional(bsb.int32()),});type User = InferBSBType<typeof UserSchema>;// Results in: { id: string; name: string; age?: number }
Infer TypeScript type from BSB type definition with recursion depth limiting. Provides compile-time type safety when using BSB schemas. Limits recursion to prevent "excessively deep" errors.