Controls tag resolution when loading and type selection when dumping.
Creates a new schema with the specified tags added. If a tag already exists, it is replaced by the specified tag.
import { CORE_SCHEMA, mergeTag, realMapTag } from 'js-yaml'const schema = CORE_SCHEMA.withTags(mergeTag, realMapTag) Copy
import { CORE_SCHEMA, mergeTag, realMapTag } from 'js-yaml'const schema = CORE_SCHEMA.withTags(mergeTag, realMapTag)
Controls tag resolution when loading and type selection when dumping.