InferOutputRow<T>- Extracts the type for a single output rowInferOutput<T>- Extracts the full output type (array of rows)
Type Signatures
InferOutputRow<T>
Extracts the type for a single output row without the array wrapper.Basic Example
With Endpoint
Type-Safe Result Handling
InferOutput<T>
Extracts the full output type as an array of rows. This is useful when you need the complete array type.Basic Example
Complete Example
When to Use Each Type
InferOutputRow<T>
Use for individual row operations, type definitions, and when iterating over results
InferOutput<T>
Use when you need the complete array type, such as function return types or state management
InferOutputRow<T> Use Cases
InferOutput<T> Use Cases
Output Type Mapping
| Tinybird Type | TypeScript Type |
|---|---|
t.string() | string |
t.int32() | number |
t.uint64() | bigint |
t.float64() | number |
t.bool() | boolean |
t.dateTime() | string |
t.date() | string |
t.array(T) | T[] |
Related Types
InferParams<T>
Extract parameter types from pipes
InferRow<T>
Extract row types from datasources