UNPKG

@polymer/polymer

Version:

The Polymer library makes it easy to create your own web components. Give your element some markup and properties, and then use it on a site. Polymer provides features like dynamic templates and data binding to reduce the amount of boilerplate you need to

25 lines (20 loc) 606 B
// tslint:disable:variable-name Describing an API that's defined elsewhere. import {Class} from './class.js'; /** * Legacy class factory and registration helper for defining Polymer * elements. * * This method is equivalent to * * import {Class} from '@polymer/polymer/lib/legacy/class.js'; * customElements.define(info.is, Class(info)); * * See `Class` for details on valid legacy metadata format for `info`. * * @returns Generated class */ export const Polymer: { (info: PolymerInit): {new(): HTMLElement}; Class: typeof Class; } import {PolymerInit} from '../../interfaces';