swc/crates/swc_bundler/tests/.cache/deno/d5e89c5832d7ee43e20f6d42ec0034ed0221c634.ts
2021-11-09 20:42:49 +09: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
}