From 505dd3ad526a52bf2afea8092ff1775c78c92f11 Mon Sep 17 00:00:00 2001 From: Dhvani Patel Date: Tue, 31 Oct 2023 19:27:10 -0400 Subject: [PATCH] Add comments --- packages/gas-report/ts/index.ts | 1 + packages/store/ts/config/storeConfig.ts | 2 ++ 2 files changed, 3 insertions(+) diff --git a/packages/gas-report/ts/index.ts b/packages/gas-report/ts/index.ts index ee86889714..cc5e87e494 100644 --- a/packages/gas-report/ts/index.ts +++ b/packages/gas-report/ts/index.ts @@ -3,6 +3,7 @@ import { readFileSync, writeFileSync } from "fs"; import execa from "execa"; import chalk from "chalk"; import { table, getBorderCharacters } from "table"; +// TODO: Fix this import for cjs // import stripAnsi from "strip-ansi"; // const stripAnsi = require('strip-ansi'); diff --git a/packages/store/ts/config/storeConfig.ts b/packages/store/ts/config/storeConfig.ts index 06b2c6d10c..b11618607e 100644 --- a/packages/store/ts/config/storeConfig.ts +++ b/packages/store/ts/config/storeConfig.ts @@ -225,6 +225,8 @@ export type FullEnumsConfig = { enums: Record; }; +// TODO: Fix .any() should be zUserEnum, but for some reason when +// compiling to cjs, it doesn't work export const zEnumsConfig = z.object({ enums: z.record(zUserEnumName, z.any()).default(DEFAULTS.enums), });