Skip to content

Commit

Permalink
fix: correct csv schema type and filter undefined from columns
Browse files Browse the repository at this point in the history
  • Loading branch information
Th1nkK1D committed Oct 29, 2024
1 parent 451ae49 commit a5a23cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/parse-csv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ import {
TypeGuard,
type Static,
type TObject,
type TSchema,
type TTuple,
} from '@sinclair/typebox';
import { Value } from '@sinclair/typebox/value';
import { csvParseRows } from 'd3-dsv';
import { ColumnKind, type TColumn } from './column';

const ROW_INDEX_OFFSET = 1;

export type TCsvSchema = TColumn | TObject | TSchema;
export type TCsvSchema = TColumn | TObject | TTuple;

/**
* Parse the CSV string according to the given table
Expand Down

0 comments on commit a5a23cc

Please sign in to comment.