Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
type alias ContentTypeToExtension
import { type ContentTypeToExtension } from "https://deno.land/std@0.214.0/media_types/content_type.ts";

Maps content types to their corresponding file extensions.

definition: [K in keyof DB]: DB[K] extends { extensions: readonly string[]; } ? DB[K]["extensions"][number] : never