DB Docs
API Reference
- Core API Reference
- Collection
- createCollection
- liveQueryCollectionOptions
- createLiveQueryCollection
- createOptimisticAction
- createTransaction
- Electric DB Collection
- electricCollectionOptions
- Query DB Collection
- queryCollectionOptions
- RxDB DB Collection
- rxdbCollectionOptions
- PowerSync Collection
- powerSyncCollectionOptions
- createIndexedDB
- indexedDBCollectionOptions
- React Hooks
- useLiveQuery
AI/LLM: This documentation page is available in plain markdown format at/db/latest/docs/reference/powersync-db-collection/type-aliases/InferPowerSyncOutputType.md
InferPowerSyncOutputType
ts
type InferPowerSyncOutputType<TTable, TSchema> = [TSchema] extends [never] ? ExtractedTable<TTable> : InferSchemaOutput<TSchema>;Defined in: definitions.ts:22
Small helper which determines the output type if:
- Standard SQLite types are to be used OR
- If the provided schema should be used.
Type Parameters#
TTable#
TTable extends Table = Table
TSchema#
TSchema extends StandardSchemaV1<PowerSyncRecord> = never