@soil/arch
Version:
Architectural constructs for web applications.
8 lines (7 loc) • 323 B
TypeScript
import { AriaAttributes } from '../types/AriaAttributes';
import { Props } from '../types/Props';
/**
* Assign properties from an object literal to an object of type `HTMLElement`
* or `SVGElement`.
*/
export declare function assignProps<E extends Element, P extends Props<E> & AriaAttributes>(elem: E, props: P): void;