UNPKG

@virtualstate/app-history

Version:

Native JavaScript [app-history](https://github.com/WICG/app-history) implementation

13 lines (12 loc) 476 B
import { Request, Response } from "@opennetwork/http-representation"; import { RespondEvent } from "../../event-target/respond-event"; export interface FetchEvent extends RespondEvent<"fetch", Response> { request: Request; } export interface RequestInit { body?: string; headers?: Record<string, string>; method?: "get" | "post" | "put" | "delete"; signal?: AbortSignal; } export declare function fetch(url: string, init?: RequestInit): Promise<Response>;