🚨Important: Because TypeScript does not natively support higher-kinded types, it is not yet possible to polymorphically override the type of collection types (e.g. list, set, map).
However, you can still technically override the type of a collection datatype monomorphically.
Overview
Provides a way to override the type of specific datatypes in the InferTableSchema-like utility types.
Use-case: Custom ser/des
This is especially useful when working with custom ser/des, requiring you to use a different type for a specific datatype.
Example
Use-case: Removing
| nullIf you really want a column to be non-null, you can use the
TypeOverridestype to override the type of a specific datatype to be non-null.Example
Use-case: Adding datatypes
You can also add typing support for a datatype which isn't yet supported by the client.
Example
Overriding collection types
However, you can still technically override the type of a collection datatype monomorphically.
Example