Interface TypefusionScriptUnknown

The type of a Typefusion script export (TypefusionScriptExport) when the result of the run function contains potentially only the return data. However, the data is unknown, so you can pass in any data array and it will type check.

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

Hierarchy (view full)

Properties

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