Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
dbuezas committed Oct 13, 2024
1 parent c21c8c1 commit 8b24284
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4,020 deletions.
4 changes: 2 additions & 2 deletions src/jsonschema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ type With$fn<T> = {
: T[K] extends object
? With$fn<T[K]> // handle objects recursively
: T[K]) // retain original type
| (string & `${Whitespace | ""}$ex${Whitespace}${string}`)
| (string & `${Whitespace | ""}$fn${Whitespace}${string}`); // allow string starting with $ex or $fn with optional whitespace
| `${Whitespace | ""}$ex${Whitespace}${string}`
| `${Whitespace | ""}$fn${Whitespace}${string}`; // allow string starting with $ex or $fn with optional whitespace
};

export type JsonSchemaRoot = With$fn<InputConfig>;
Loading

0 comments on commit 8b24284

Please sign in to comment.