Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/ts_essentials/lib/mod.ts>Dictionary

All basic TypeScript types in one place 🤙
Latest
type alias Dictionary
import { type Dictionary } from "https://deno.land/x/ts_essentials@v9.1.2/lib/mod.ts";

Like Record, but can be used with only one argument. Useful, if you want to make sure that all of the keys of a finite type are used.

Type Parameters

T
optional
K extends KeyofBase = string
definition: [key in K]: T