[]previous and next page

ApiResult

What an API route handler may return.

What an API route handler may return. A Response is sent as is, anything else becomes JSON.

Import#

ts
import type { ApiResult } from "@shadow-js/dusk/server";

Signature#

ts
type ApiResult = Response | undefined | null | string | number | boolean | object