From b0f69a6dbe2b0ff4b638411298615bbf20cfa1be Mon Sep 17 00:00:00 2001 From: Michael Wolf Date: Sat, 8 Feb 2025 19:30:22 -0600 Subject: [PATCH] Export types --- deno/content-types.ts | 4 +++- deno/http-codes.ts | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) 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;