Skip to content

Commit cdf1b62

Browse files
committed
declare SimpleRequest type
1 parent c625cb6 commit cdf1b62

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/index.js.flow

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ declare module '@github/remote-form' {
77
html: () => Promise<SimpleResponse>
88
}
99

10+
declare type SimpleRequest = {
11+
method: string,
12+
url: string,
13+
body: ?FormData,
14+
headers: Headers
15+
}
16+
1017
declare export type SimpleResponse = {
1118
url: string,
1219
status: number,

0 commit comments

Comments
 (0)