When typia.stringify<T>()
be used for an object type which has template typed key containing a number type, and exponential log being used in the template key type, typia
could not write the property because regex pattern for numeric value of typia
had not supported the exponential log value.
This is an extremely rare case, but fixed for extensionality.
export interface ISomething {
[key: `value_${number}`]: boolean | string | number;
}
const something: ISomething = {
"5.175933557310941e-7": -0.170261004873707,
};
typia.stringify(something);
What's Changed
- Enhance #744 - silent setup and enhanced documentation. by @samchon in #748
- Fix number pattern of
stringify
to support exponential log value by @samchon in #749 - Benchmark on Surface Pro 6 by @samchon in #750
Full Changelog: v4.2.0...v4.2.1