v3.3.0
Supports template literal type.
From now on, such crazy template literal type can be validated.
Also, dynamic properties (#153) would be supported soon (maybe next Sunday), by v3.4 update.
export interface TemplateUnion {
prefix: `prefix_${string | number | boolean}`;
postfix: `${string | number | boolean}_postfix`;
middle: `the_${number | boolean}_value`;
mixed:
| `the_${number | "A" | "B"}_value`
| { name: string }
| boolean
| number;
}
What's Changed
- Close #200, refactor
MetadataProperty
for dynamic properties by @samchon in #201 - Close #206 - separate
MetadataFactory
by @samchon in #207 - Close #208 -
Metadata.templates
by @samchon in #209 - Close #205, support template literal types by @samchon in #210
Full Changelog: v3.2.8...v3.3.0