Skip to content

Commit

Permalink
declare SimpleRequest type
Browse files Browse the repository at this point in the history
  • Loading branch information
koddsson committed May 21, 2019
1 parent c625cb6 commit cdf1b62
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/index.js.flow
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ declare module '@github/remote-form' {
html: () => Promise<SimpleResponse>
}

declare type SimpleRequest = {
method: string,
url: string,
body: ?FormData,
headers: Headers
}

declare export type SimpleResponse = {
url: string,
status: number,
Expand Down

0 comments on commit cdf1b62

Please sign in to comment.