-
-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #1112: template literal type problem when type tag comes.
When type tag being used with template literal type, `typia` could not analyze it exactly. This PR fixes the problem by entirely remaking metadata composer about the template literal case.
- Loading branch information
Showing
41 changed files
with
3,530 additions
and
2,091 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,4 @@ | ||
input => { | ||
const $io0 = input => "string" === typeof input.pure && (RegExp(/^[+-]?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\/[+-]?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?$/).test(input.pure) || RegExp(/(.*)\x2d(.*)/).test(input.pure)) && ("string" === typeof input.sole && RegExp(/^[+-]?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\/[+-]?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?$/).test(input.sole)) && ("string" === typeof input.union && (RegExp(/^[+-]?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\/[+-]?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?$/).test(input.union) || RegExp(/(.*)\x2d(.*)/).test(input.union))) && ("string" === typeof input.mixed && (RegExp(/^[+-]?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\/[+-]?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?$/).test(input.mixed) || RegExp(/(.*)\x2d(.*)/).test(input.mixed) || RegExp(/(.*)\|\|[+-]?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?$/).test(input.mixed))) && (null !== input.boolean_and_number_and_template && undefined !== input.boolean_and_number_and_template && ("number" === typeof input.boolean_and_number_and_template || "boolean" === typeof input.boolean_and_number_and_template || "string" === typeof input.boolean_and_number_and_template && RegExp(/^prefix_(.*)/).test(input.boolean_and_number_and_template))); | ||
return "object" === typeof input && null !== input && $io0(input); | ||
} |
Oops, something went wrong.