Interface TypefusionScriptDataOnlyEffect<DataElement>

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

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