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
| Parameter | Type |
|---|---|
self | LaikaTask<A> |
Returns
Promise<A>