swc/bundler/tests/.cache/deno/d5e89c5832d7ee43e20f6d42ec0034ed0221c634.ts
강동윤 f8aa0509ce
fix(bundler): Fix stack overflow (#2080)
swc_bundler:
 - Prevent infinite recursions. (#1963)
2021-08-15 02:37:31 +00:00

37 lines
696 B
TypeScript

// Loaded from https://deno.land/x/tinyhttp@0.1.18/types.ts
import { NextFunction, Handler as RHandler, Middleware, UseMethodParams, Method } from 'https://esm.sh/@tinyhttp/router'
import type { Request, Response } from './mod.ts'
type QueryParams = {
[key: string]: string | string[]
}
type AcceptsReturns = string | false | string[]
type Protocol = 'http' | 'https'
interface Ranges extends Array<Range> {
type: string
}
interface Range {
start: number
end: number
}
export type Handler<Req = Request> = RHandler<Req, Response>
export type {
QueryParams,
AcceptsReturns,
Protocol,
Range,
Ranges,
Method,
NextFunction,
RHandler,
Middleware,
UseMethodParams
}