Interface TypefusionScriptExport

This is a partial type for the 'default' export of an ES Module when importing a Typefusion script.

interface TypefusionScriptExport {
    name: string;
    resultDatabase: TypefusionSupportedDatabases;
    run?: (() => PromiseLike<TypefusionScriptResult<unknown>>);
    runEffect?: (<R>() => Effect<TypefusionScriptResult<unknown>, any, R>);
    schema?: Record<string, PgType<unknown>> | Record<string, MySqlType<unknown>> | Record<string, ClickhouseType<unknown>>;
}

Hierarchy (view full)

Properties

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