Skip to content

Commit

Permalink
readd NoInfer util type
Browse files Browse the repository at this point in the history
  • Loading branch information
inferrinizzard committed Jun 4, 2024
1 parent 288feb4 commit 96c411f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/quicktype-core/src/RendererOptions.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { messageError } from "./Messages";
import { assert } from "./support/Support";
import { type FixMeOptionsType } from "./types";
import { type FixMeOptionsType, type NoInfer } from "./types";

/**
* Primary options show up in the web UI in the "Language" settings tab,
Expand Down
4 changes: 3 additions & 1 deletion packages/quicktype-core/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ export * from "./language/types";
export * from "./language/options.types";

// FIXME: remove these when options are strongly typed

/* eslint-disable @typescript-eslint/no-explicit-any */
export type FixMeOptionsType = Record<string, any>;

// FIXME: Remove this post TS5.4
export type NoInfer<T> = [T][T extends any ? 0 : never];

0 comments on commit 96c411f

Please sign in to comment.