Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added test for enums with defaults (#1149)
* Added test for enums with defaults * Fix style * Fix test.only Co-authored-by: Colin McDonnell <colinmcd@alum.mit.edu>
- Loading branch information
1 parent
b57a25c
commit 51e93e7
Showing
3 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
interface Body<T> { | ||
readonly body: ReadableStream<Uint8Array> | null; | ||
readonly bodyUsed: boolean; | ||
arrayBuffer(): Promise<ArrayBuffer>; | ||
blob(): Promise<Blob>; | ||
formData(): Promise<FormData>; | ||
json(): Promise<T>; | ||
text(): Promise<string>; | ||
} | ||
|
||
interface Response<T> extends Body<T> { | ||
readonly headers: Headers; | ||
readonly ok: boolean; | ||
readonly redirected: boolean; | ||
readonly status: number; | ||
readonly statusText: string; | ||
readonly type: ResponseType; | ||
readonly url: string; | ||
clone(): Response<T>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters