UNPKG

typia

Version:

Superfast runtime validators with only one line

44 lines 1.43 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MetadataAliasType = void 0; class MetadataAliasType { /* ----------------------------------------------------------- CONSTRUCTORS ----------------------------------------------------------- */ /** @ignore */ 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(), }; } } exports.MetadataAliasType = MetadataAliasType; //# sourceMappingURL=MetadataAliasType.js.map