InferPowerSyncOutputType

Type Alias: InferPowerSyncOutputType<TTable, TSchema>

ts
type InferPowerSyncOutputType<TTable, TSchema> = TSchema extends never ? ExtractedTable<TTable> : InferSchemaOutput<TSchema>;
type InferPowerSyncOutputType<TTable, TSchema> = TSchema extends never ? ExtractedTable<TTable> : InferSchemaOutput<TSchema>;

Defined in: definitions.ts:20

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

Subscribe to Bytes

Your weekly dose of JavaScript news. Delivered every Monday to over 100,000 devs, for free.

Bytes

No spam. Unsubscribe at any time.

Subscribe to Bytes

Your weekly dose of JavaScript news. Delivered every Monday to over 100,000 devs, for free.

Bytes

No spam. Unsubscribe at any time.