Values in a record can be any schema, including object(). This is useful for maps from an ID or key to a structured entity.
const result = schema.validate(data)Define a schema to see its inferred TypeScript type.
InferType<typeof schema> automatically derives the TypeScript type from your schema definition.