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

x/ts_essentials/lib/mod.ts>SafeDictionary

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

Like Dictionary, but:

  • ensures type safety of index access
  • does not enforce key exhaustiveness

Type Parameters

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