UNPKG

static-browser-server

Version:

A simple service worker used for the static template in sandpack, allowing users to develop websites like they would locally in the browser.

11 lines (10 loc) 356 B
/// <reference no-default-lib="true"/> /// <reference lib="webworker" /> import { DeferredPromise } from "@open-draft/deferred-promise"; export type {}; interface IResponseData { status: number; headers: Record<string, string>; body: string | Uint8Array; } export declare function getResponse(request: Request): DeferredPromise<IResponseData>;