replace
replace(
instance
,data
,middlewares?
):Promise
<unknown
>
Defined in: astrobase/src/middleware/replace.ts:13
Perform a recursive replace on a value using the middlewares provided or pre-registered.
Parameters
Section titled “Parameters”instance
Section titled “instance”The instance for middleware resolution. Also provided to the middleware as context.
unknown
The data to recursively walk and replace.
middlewares?
Section titled “middlewares?”An optional array of additional middlewares to use.
Returns
Section titled “Returns”Promise
<unknown
>
A promise that resolves with the post-processed value.