Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(): let
ConfigService
type know about schema validation
Closes #668
- Loading branch information
1 parent
a403003
commit f6d4b6b
Showing
3 changed files
with
18 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/** | ||
* `ExcludeUndefinedIf<ExcludeUndefined, T> | ||
* | ||
* If `ExcludeUndefined` is `true`, remove `undefined` from `T`. | ||
* Otherwise, constructs the type `T` with `undefined`. | ||
*/ | ||
export type ExcludeUndefinedIf< | ||
ExcludeUndefined extends boolean, | ||
T, | ||
> = ExcludeUndefined extends true ? Exclude<T, undefined> : T | undefined; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters