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

std/csv/parse.ts>RecordWithColumn

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.218.0/csv/parse.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>