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
1 parent
1b70094
commit 93b0138
Showing
30 changed files
with
352 additions
and
249 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,3 +46,4 @@ scalajs-reaction-docs | |
/*.yml | ||
.vscode | ||
.ipy* | ||
metals.sbt |
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
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
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,17 +1,21 @@ | ||
package node_fetch | ||
|
||
import scala.scalajs.js | ||
import js.| | ||
import scala.scalajs.js.annotation._ | ||
import scala.scalajs.js.annotation.* | ||
import scala.scalajs.js.typedarray.{ArrayBuffer, Uint8Array} | ||
|
||
package object node_fetch { | ||
type RequestInfo = String | Request | ||
type HeadersInit = | ||
Headers | Sequence[Sequence[ByteString]] | OpenEndedDictionary[ByteString] | ||
type ByteString = String | ||
|
||
/** Keep the type simple so we don't have to pull in Blob, BufferSource, FormData, URLSearchParams. */ | ||
type BodyInit = String | js.Any | ||
//Blob | BufferSource | FormData | String //todo: add URLSearchParams | ||
type Sequence[T] = js.Array[T] | ||
type OpenEndedDictionary[T] = js.Dictionary[T] | ||
} | ||
type RequestInfo = String | Request | ||
|
||
type HeadersInit = | ||
Headers | Sequence[Sequence[ByteString]] | OpenEndedDictionary[ByteString] | ||
|
||
type ByteString = String | ||
|
||
/** Keep the type simple so we don't have to pull in Blob, BufferSource, FormData, URLSearchParams. */ | ||
type BodyInit = String | js.Any | ||
|
||
//Blob | BufferSource | FormData | String //todo: add URLSearchParams | ||
type Sequence[T] = js.Array[T] | ||
|
||
type OpenEndedDictionary[T] = js.Dictionary[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
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 |
---|---|---|
|
@@ -23,7 +23,6 @@ package jshelpers | |
package syntax | ||
|
||
import scala.scalajs.js | ||
import js.| | ||
|
||
object misc: | ||
/** | ||
|
Oops, something went wrong.