mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Added new types for domelementtype * Adding types for module domutils * Updating PULL_REQUEST_TEMPLATE.md * Revert changes to .github/PULL_REQUEST_TEMPLATE.md * Update test and documentation * Removed namespace and fixed tests
10 lines
223 B
TypeScript
10 lines
223 B
TypeScript
import * as DomUtils from 'domutils';
|
|
|
|
const elem = { name: 'elem' };
|
|
const next = { name: 'next' };
|
|
const child = { name: 'child' };
|
|
|
|
DomUtils.append(elem, next);
|
|
DomUtils.appendChild(elem, child);
|
|
DomUtils.getName(elem);
|