File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 1- // import ts from 'typescript';
2-
31import * as SDKTypes from "./types.js" ;
42import * 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.
711type DeepKnownKeys < T > = T extends object
812 ? T extends Array < infer U >
913 ? Array < DeepKnownKeys < U > >
You can’t perform that action at this time.
0 commit comments