Interface TypefusionScriptUnknownEffect

The type of a Typefusion script export (TypefusionScriptExport) when the result of the runEffect 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 TypefusionScriptUnknownEffect {
    name: string;
    resultDatabase: TypefusionSupportedDatabases;
    run?: (() => PromiseLike<TypefusionScriptResult<unknown>>);
    runEffect: (<R>() => Effect<TypefusionScriptResult<Record<string, unknown>>, any, R>);
    schema: {};
}

Hierarchy (view full)

Properties

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