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 2bdc455
Showing 1 changed file with 2 additions and 2 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>;

0 comments on commit 2bdc455

Please sign in to comment.