From d1a30ab2d2a41bcc10b67f401c1ffaaf0c3ffaaf Mon Sep 17 00:00:00 2001 From: Olivier Chafik Date: Thu, 3 Jul 2025 19:29:30 +0100 Subject: [PATCH] disable lints in spec.types.test.ts --- src/spec.types.test.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/spec.types.test.ts b/src/spec.types.test.ts index b6c88689..bdfd953b 100644 --- a/src/spec.types.test.ts +++ b/src/spec.types.test.ts @@ -1,9 +1,13 @@ -// import ts from 'typescript'; - import * as SDKTypes from "./types.js"; import * as SpecTypes from "./spec.types.js"; +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-unsafe-function-type */ +/* eslint-disable @typescript-eslint/no-require-imports */ + // Deep version that recursively removes index signatures (caused by ZodObject.passthrough()) and turns unknowns into `object | undefined` +// TODO: make string index mapping tighter +// TODO: split into multiple transformations (e.g. RemovePassthrough) and only use the ones needed for each type. type DeepKnownKeys = T extends object ? T extends Array ? Array>