Interface TypefusionScriptDataOnly<DataElement>

The type of a Typefusion script export (TypefusionScriptExport) when the result of the run function contains the data without any schema.

interface TypefusionScriptDataOnly<DataElement> {
    name: string;
    resultDatabase: TypefusionSupportedDatabases;
    run: (() => PromiseLike<TypefusionScriptResult<DataElement>>);
    runEffect?: (<R>() => Effect<TypefusionScriptResult<unknown>, any, R>);
    schema?: {
        [key in string | number | symbol]: DbType<DataElement[key]>
    };
}

Type Parameters

  • DataElement extends Record<string, unknown>

Hierarchy (view full)

Properties

name: string
run: (() => PromiseLike<TypefusionScriptResult<DataElement>>)
runEffect?: (<R>() => Effect<TypefusionScriptResult<unknown>, any, R>)
schema?: {
    [key in string | number | symbol]: DbType<DataElement[key]>
}