Type alias InferTableReadSchema<T>

InferTableReadSchema<T>: T extends CreateTableDefinition
    ? FoundRow<InferTableSchemaFromDefinition<T>>
    : T extends ((..._) => Promise<Table<any, any, infer Schema>>)
        ? Schema
        : T extends ((..._) => Table<any, any, infer Schema>)
            ? Schema
            : T extends Promise<Table<any, any, infer Schema>>
                ? Schema
                : T extends Table<any, any, infer Schema>
                    ? Schema
                    : never

Automagically extracts a table's read-schema from some Table-like type, most useful when performing a Db.createTable (or Table.alter) operation.

See InferTableSchema for more information & examples.

Type Parameters