@edge-runtime/types
Version:
TypeScript global types for using Edge Runtime.
19 lines (14 loc) • 428 B
TypeScript
// Reference required types from the default lib
/// <reference lib="ES2019" />
import * as Edge from '@edge-runtime/primitives'
declare global {
function addEventListener(
type: 'fetch',
listener: (event: Edge.FetchEvent) => void,
): void
const EdgeRuntime: Record<never, never>
const globalThis: typeof Edge
const FetchEvent: typeof Edge.FetchEvent
const URLPattern: typeof Edge.URLPattern
}
export {}