Interface TypefusionDbScriptDataUnknownEffect<T>

The type of a Typefusion script export (TypefusionScriptExport) when the result of the runEffect function contains both the 'schema' and return data you want to use your existing PgType or MySqlType or ClickhouseType schema. However, the data is unknown, so you can pass in any data array and it will type check.

interface TypefusionDbScriptDataUnknownEffect<T> {
    name: string;
    resultDatabase: TypefusionSupportedDatabases;
    run?: (() => PromiseLike<TypefusionScriptResult<unknown>>);
    runEffect: (<R>() => Effect<TypefusionScriptResult<Record<any, any>>, any, R>);
    schema: T;
}

Type Parameters

  • T extends Record<string, DbType<unknown>>

Hierarchy (view full)

Properties

name: string
run?: (() => PromiseLike<TypefusionScriptResult<unknown>>)
runEffect: (<R>() => Effect<TypefusionScriptResult<Record<any, any>>, any, R>)
schema: T