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
-
3
1
import * as SDKTypes from "./types.js" ;
4
2
import * as SpecTypes from "./spec.types.js" ;
5
3
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
+
6
8
// 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.
7
11
type DeepKnownKeys < T > = T extends object
8
12
? T extends Array < infer U >
9
13
? Array < DeepKnownKeys < U > >
You can’t perform that action at this time.
0 commit comments