Skip to content

Commit cc25948

Browse files
committed
unexport isResponse too
1 parent b87a4ef commit cc25948

File tree

2 files changed

+2
-25
lines changed

2 files changed

+2
-25
lines changed

docs/modules/handler.md

-19
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
### Functions
2525

2626
- [createHandler](handler.md#createhandler)
27-
- [isResponse](handler.md#isresponse)
2827

2928
## Server
3029

@@ -216,21 +215,3 @@ console.log('Listening to port 4000');
216215
#### Returns
217216

218217
[`Handler`](handler.md#handler)<`RequestRaw`, `RequestContext`\>
219-
220-
___
221-
222-
### isResponse
223-
224-
**isResponse**(`val`): val is Response
225-
226-
Checks whether the passed value is the `graphql-http` server agnostic response.
227-
228-
#### Parameters
229-
230-
| Name | Type |
231-
| :------ | :------ |
232-
| `val` | `unknown` |
233-
234-
#### Returns
235-
236-
val is Response

src/handler.ts

+2-6
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,8 @@ export interface ResponseInit {
123123
*/
124124
export type Response = readonly [body: ResponseBody | null, init: ResponseInit];
125125

126-
/**
127-
* Checks whether the passed value is the `graphql-http` server agnostic response.
128-
*
129-
* @category Server
130-
*/
131-
export function isResponse(val: unknown): val is Response {
126+
/** Checks whether the passed value is the `graphql-http` server agnostic response. */
127+
function isResponse(val: unknown): val is Response {
132128
// TODO: make sure the contents of init match ResponseInit
133129
return (
134130
Array.isArray(val) &&

0 commit comments

Comments
 (0)