Skip to content

Commit

Permalink
Merge pull request #43 from narthur/table-id-strings
Browse files Browse the repository at this point in the history
accept string numbers for table ids
  • Loading branch information
narthur committed Aug 1, 2024
2 parents 02a3a73 + b9d6841 commit da96b30
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/getConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ import z from "zod";

const schema = z.object({
url: z.string(),
tables: z.record(z.string(), z.number()),
tables: z.record(
z.string(),
z.preprocess((val) => parseFloat(val as string), z.number()),
),
databaseToken: z.string(),
outDir: z.string(),
config: z.string(),
Expand Down

0 comments on commit da96b30

Please sign in to comment.