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.220.0/media_types/mod.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