diff --git a/deno/content-types.ts b/deno/content-types.ts index cd15683..e3cdcd2 100644 --- a/deno/content-types.ts +++ b/deno/content-types.ts @@ -1,6 +1,8 @@ import { Extensible } from "./interfaces"; -const contentTypes: Extensible = { +export type ContentType = string + +const contentTypes= { text: { plain: "text/plain", html: "text/html", diff --git a/deno/http-codes.ts b/deno/http-codes.ts index ee611d7..572a490 100644 --- a/deno/http-codes.ts +++ b/deno/http-codes.ts @@ -1,6 +1,6 @@ import { Extensible } from "./interfaces"; -type HttpCode = { +export type HttpCode = { code: number; name: string; description?: string;