Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/csv/mod.ts>RecordWithColumn

The Deno Standard Library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
type alias RecordWithColumn
Re-export
import { type RecordWithColumn } from "https://deno.land/std@0.222.1/csv/mod.ts";

Record type with column type.

Examples

Example 1

type RecordWithColumn<"aaa"|"bbb"> => Record<"aaa"|"bbb", string>
type RecordWithColumn<string> => Record<string, string | undefined>

Type Parameters

C extends string
definition: string extends C ? Record<string, string | undefined> : Record<C, string>