GraphReFlyTS

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

ParameterTypeDescription
issueDataIssueData issue to lower into a response.
_hostTHostHost 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