Skip to content

TypeScript API / laikacms/core / LaikaTask / runPromise

Function: runPromise() ​

ts
function runPromise<A>(self): Promise<A>;

Promise-shaped entry point for non-Effect consumers. Drops metadata; the returned Promise resolves with the value or rejects with the fatal LaikaError (no Effect runtime imports required at the call site).

Type Parameters ​

Type Parameter
A

Parameters ​

ParameterType
selfLaikaTask<A>

Returns ​

Promise<A>

Released under the MIT License.