type toJSON returns

This commit is contained in:
Kevin Jahns
2020-01-22 16:44:30 +01:00
parent 6cd9e2be32
commit 0e6deab9c9
3 changed files with 7 additions and 2 deletions

View File

@@ -242,6 +242,9 @@ export class YXmlFragment extends AbstractType {
return typeListMap(this, xml => xml.toString()).join('')
}
/**
* @return {string}
*/
toJSON () {
return this.toString()
}