Skip to main content

Function: resolveFlat()

resolveFlat(def, params?): object

Defined in: core/flat.ts:65

Build the full request (absolute URL + query) for a flat wrapper without fetching. Exported so the param resolution is unit-testable without network.

Parameters

def

WrapperDef

params?

Record<string, any> = {}

Returns

object

query

query: Record<string, any>

url

url: string

Throws

if a {token} in the path can't be resolved (no param, no default).