From ceefd75f9caac71f9697b5e20db753edd47220f8 Mon Sep 17 00:00:00 2001 From: Lance Gliser Date: Wed, 2 Oct 2024 12:21:50 -0500 Subject: [PATCH] Moved CSV to examples/CSV --- src/features/sources/{ => examples}/CSV.test.ts | 8 ++++---- src/features/sources/{ => examples}/CSV.ts | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) rename src/features/sources/{ => examples}/CSV.test.ts (89%) rename src/features/sources/{ => examples}/CSV.ts (94%) diff --git a/src/features/sources/CSV.test.ts b/src/features/sources/examples/CSV.test.ts similarity index 89% rename from src/features/sources/CSV.test.ts rename to src/features/sources/examples/CSV.test.ts index f569880..5f1b163 100644 --- a/src/features/sources/CSV.test.ts +++ b/src/features/sources/examples/CSV.test.ts @@ -1,8 +1,8 @@ import { readFileSync } from "fs"; -import { FeatureAttributes, FeatureAttributesIndex } from "../../types"; -import { AbstractDataType } from "../base"; -import { expectFeatureAttributesIndex } from "../infer.test"; -import { InferFeatureAttributesFromCSV, InferFeatureAttributesFromCSVOptions } from "./CSV"; +import type { FeatureAttributes, FeatureAttributesIndex } from "../../../types"; +import type { AbstractDataType } from "../../base"; +import { expectFeatureAttributesIndex } from "../../infer.test"; +import { InferFeatureAttributesFromCSV, type InferFeatureAttributesFromCSVOptions } from "./CSV"; describe("features/sources/CSV", () => { describe("InferFeatureAttributesFromArray", () => { diff --git a/src/features/sources/CSV.ts b/src/features/sources/examples/CSV.ts similarity index 94% rename from src/features/sources/CSV.ts rename to src/features/sources/examples/CSV.ts index 761def8..ac462d1 100644 --- a/src/features/sources/CSV.ts +++ b/src/features/sources/examples/CSV.ts @@ -5,8 +5,8 @@ */ import { autoType, csvParse } from "d3-dsv"; -import { AbstractDataType, FeatureSourceFormat } from "../base"; -import { InferFeatureAttributesFromArray } from "./Array"; +import type { AbstractDataType, FeatureSourceFormat } from "../../base"; +import { InferFeatureAttributesFromArray } from "../Array"; export type InferFeatureAttributesFromCSVOptions = { limit?: number;