Skip to content

Documentation / @expofp/resolve / Ref

Interface: Ref<T>

Type Parameters

T

T

Properties

__type?

ts
optional __type?: T;

$ref

ts
$ref: string;

process?

ts
optional process?: (raw, refUrl) => unknown;

Post-resolution hook: turns the raw fetched/evaluated document into the value to memoize (validate, absolutize resource URLs, …). Attached in code by whoever mints the ref — JSON.stringify drops it, so serialized refs stay plain { $ref } data.

Parameters

raw

unknown

refUrl

string

Returns

unknown