Fixing signature of eventSourceInit fetch signature
This commit is contained in:
parent
760c7e4056
commit
349e23f992
1 changed files with 3 additions and 3 deletions
|
|
@ -357,7 +357,7 @@ export function useConnection({
|
||||||
eventSourceInit: {
|
eventSourceInit: {
|
||||||
fetch: (
|
fetch: (
|
||||||
url: string | URL | globalThis.Request,
|
url: string | URL | globalThis.Request,
|
||||||
init: RequestInit | undefined,
|
init?: RequestInit,
|
||||||
) =>
|
) =>
|
||||||
fetch(url, {
|
fetch(url, {
|
||||||
...init,
|
...init,
|
||||||
|
|
@ -377,7 +377,7 @@ export function useConnection({
|
||||||
eventSourceInit: {
|
eventSourceInit: {
|
||||||
fetch: (
|
fetch: (
|
||||||
url: string | URL | globalThis.Request,
|
url: string | URL | globalThis.Request,
|
||||||
init: RequestInit | undefined,
|
init?: RequestInit,
|
||||||
) =>
|
) =>
|
||||||
fetch(url, {
|
fetch(url, {
|
||||||
...init,
|
...init,
|
||||||
|
|
@ -397,7 +397,7 @@ export function useConnection({
|
||||||
eventSourceInit: {
|
eventSourceInit: {
|
||||||
fetch: (
|
fetch: (
|
||||||
url: string | URL | globalThis.Request,
|
url: string | URL | globalThis.Request,
|
||||||
init: RequestInit | undefined,
|
init?: RequestInit,
|
||||||
) =>
|
) =>
|
||||||
fetch(url, {
|
fetch(url, {
|
||||||
...init,
|
...init,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue