Skip to content

Commit

Permalink
fix: add missing headers type import / export (#198)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kiran Thomas authored Aug 28, 2020
1 parent 762735b commit 9324747
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import fetch from 'cross-fetch'
import { print } from 'graphql/language/printer'
import { ClientError, GraphQLError, RequestDocument, Variables } from './types'
import { RequestInit, Response } from './types.dom'
import { Headers, RequestInit, Response } from './types.dom'

export { ClientError } from './types'

Expand Down
2 changes: 1 addition & 1 deletion src/types.dom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/

/** This Fetch API interface allows you to perform various actions on HTTP request and response headers. These actions include retrieving, setting, adding to, and removing. A Headers object has an associated header list, which is initially empty and consists of zero or more name and value pairs.  You can add to this using methods like append() (see Examples.) In all methods of this interface, header names are matched by case-insensitive byte sequence. */
interface Headers {
export interface Headers {
append(name: string, value: string): void
delete(name: string): void
get(name: string): string | null
Expand Down

0 comments on commit 9324747

Please sign in to comment.