Skip to content

Commit faf830a

Browse files
committed
refactor: shuffle types around
1 parent a9594b7 commit faf830a

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

src/utils/config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
DEFAULT_TABLES_DIR,
1515
} from "./constants.js";
1616
import { fileURLToPath } from "url";
17-
import { DbTransformation } from "./types.js";
17+
import { DbTransformation } from "../commands/db/transform.js";
1818

1919
const __dirname = dirname(fileURLToPath(import.meta.url));
2020
const { PATH_TO_ENV, PDPL_PATH_TO_ENV } = process.env;
@@ -63,7 +63,7 @@ export interface Config {
6363
outputDir?: string;
6464
}
6565

66-
interface ConfigFile
66+
export interface ConfigFile
6767
extends Partial<Omit<Config, "configFile" | "apisSupported" | "importsSupported">> {}
6868

6969
////
@@ -104,7 +104,7 @@ let attemptedImport = false;
104104
if (!attemptedImport) {
105105
if (existsSync(configPath)) {
106106
try {
107-
configImport = (await import(configPath)) as object;
107+
configImport = (await import(configPath)) as ConfigFile;
108108
} catch (error) {
109109
const errorMessage = error instanceof Error ? error.message : "<unknown error>";
110110
console.log(

src/utils/types.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,4 +100,3 @@ export interface OutputStrategy {
100100
isReady: (fields: KeyVal, data?: KeyVal) => string[];
101101
handle: OutputStrategyHandler;
102102
}
103-
export interface DbTransformation {}

0 commit comments

Comments
 (0)