Skip to content

Commit 2bdc455

Browse files
committed
simplify
1 parent c21c8c1 commit 2bdc455

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/jsonschema.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ type With$fn<T> = {
99
: T[K] extends object
1010
? With$fn<T[K]> // handle objects recursively
1111
: T[K]) // retain original type
12-
| (string & `${Whitespace | ""}$ex${Whitespace}${string}`)
13-
| (string & `${Whitespace | ""}$fn${Whitespace}${string}`); // allow string starting with $ex or $fn with optional whitespace
12+
| `${Whitespace | ""}$ex${Whitespace}${string}`
13+
| `${Whitespace | ""}$fn${Whitespace}${string}`; // allow string starting with $ex or $fn with optional whitespace
1414
};
1515

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

0 commit comments

Comments
 (0)