createStaticBackend
createStaticBackend(
response):FunctionBackendAdapter
Defined in: backend-browser/src/function.ts:411
Create a static response backend that always returns the same response.
Parameters
Section titled “Parameters”response
Section titled “response”string
Static response content
Returns
Section titled “Returns”FunctionBackendAdapter instance
Example
Section titled “Example”const backend = createStaticBackend('I am a static response.');