-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
37 additions
and
37 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 |
---|---|---|
@@ -1,7 +1,3 @@ | ||
module Fetch | ||
interface _StringLike | ||
def to_str: () -> String | ||
end | ||
|
||
VERSION: String | ||
end |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
module Fetch | ||
class Client | ||
def to_response: (_StringLike, Net::HTTPResponse, bool) -> Response | ||
def to_response: (string, Net::HTTPResponse, bool) -> Response | ||
end | ||
end |
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
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 |
---|---|---|
@@ -1,24 +1,24 @@ | ||
module Fetch | ||
class FormData | ||
type value = String | File | ||
|
||
include Enumerable[[String, value]] | ||
include Enumerable[[String, String | File]] | ||
|
||
extend Forwardable | ||
|
||
attr_reader entries: Array[[String, value]] | ||
attr_reader entries: Array[[String, String | File]] | ||
|
||
def self.build: (Enumerable[[Object, Object]]) -> FormData | ||
def self.build: (_Each[[_ToS, _ToS | File]]) -> FormData | ||
|
||
def initialize: () -> void | ||
def append: (Object, Object) -> void | ||
def delete: (Object) -> void | ||
def get: (Object) -> value? | ||
def get_all: (Object) -> Array[value] | ||
def has: (Object) -> bool | ||
def append: (_ToS, _ToS | File) -> void | ||
def delete: (_ToS) -> void | ||
def get: (_ToS) -> (String | File)? | ||
def get_all: (_ToS) -> Array[String | File] | ||
def has: (_ToS) -> bool | ||
def keys: -> Array[String] | ||
def set: (Object, Object) -> void | ||
def values: () -> Array[value] | ||
def each: () { ([String, value]) -> void } -> Array[[String, value]] | ||
def set: (_ToS, _ToS | File) -> void | ||
def values: () -> Array[String | File] | ||
|
||
def each: () { ([String, String | File]) -> void } -> Array[[String, String | File]] | ||
| () -> Enumerator[[String, String | File], Array[[String, String | File]]] | ||
end | ||
end |
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