UNPKG

typia

Version:

Superfast runtime validators with only one line

55 lines (53 loc) 1.42 kB
class MetadataAliasType { name; value; description; jsDocTags; recursive; nullables; /* ----------------------------------------------------------- CONSTRUCTORS ----------------------------------------------------------- */ /** * @hidden */ constructor(props) { this.name = props.name; this.value = props.value; this.description = props.description; this.jsDocTags = props.jsDocTags; this.recursive = props.recursive; this.nullables = props.nullables; } /** * @internal */ static create(props) { return new MetadataAliasType(props); } /** * @internal */ static _From_without_value(props) { return MetadataAliasType.create({ name: props.name, value: null, description: props.description, recursive: props.recursive, jsDocTags: props.jsDocTags.slice(), nullables: props.nullables.slice(), }); } toJSON() { return { name: this.name, value: this.value.toJSON(), description: this.description, recursive: this.recursive, jsDocTags: this.jsDocTags.slice(), nullables: this.nullables.slice(), }; } } export { MetadataAliasType }; //# sourceMappingURL=MetadataAliasType.mjs.map