Skip to content

Commit d1a30ab

Browse files
committed
disable lints in spec.types.test.ts
1 parent ead6fb5 commit d1a30ab

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/spec.types.test.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1-
// import ts from 'typescript';
2-
31
import * as SDKTypes from "./types.js";
42
import * as SpecTypes from "./spec.types.js";
53

4+
/* eslint-disable @typescript-eslint/no-unused-vars */
5+
/* eslint-disable @typescript-eslint/no-unsafe-function-type */
6+
/* eslint-disable @typescript-eslint/no-require-imports */
7+
68
// Deep version that recursively removes index signatures (caused by ZodObject.passthrough()) and turns unknowns into `object | undefined`
9+
// TODO: make string index mapping tighter
10+
// TODO: split into multiple transformations (e.g. RemovePassthrough) and only use the ones needed for each type.
711
type DeepKnownKeys<T> = T extends object
812
? T extends Array<infer U>
913
? Array<DeepKnownKeys<U>>

0 commit comments

Comments
 (0)