DefinitelyTyped/types/xmlserializer/xmlserializer-tests.ts
2019-01-25 02:57:27 +00:00

9 lines
209 B
TypeScript

import * as xmlserializer from 'xmlserializer';
import * as parse5 from 'parse5';
const htmlString = '<br>';
const dom = parse5.parse(htmlString);
// $ExpectType string
xmlserializer.serializeToString(dom);