API Reference
issueResponse()
Checks whether a value is an issue response.
Import
import { issueResponse } from "@graphrefly/ts/adapters/nestjs";
Signature
function issueResponse(
issue: DataIssue,
_host?: THost,
): NestHttpResponsePayload
Parameters
| Parameter | Type | Description |
|---|---|---|
issue | DataIssue | Data issue to lower into a response. |
_host | THost | Host object from the framework boundary. |
Returns
true when the value matches the expected shape.
Example
import { issueResponse } from "@graphrefly/ts/adapters/nestjs";
Source
packages/ts/src/adapters/nestjs.ts