@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
29 lines (23 loc) • 725 B
TypeScript
/**
* DO NOT EDIT
*
* This file was automatically generated by
* https://github.com/Polymer/tools/tree/master/packages/gen-typescript-declarations
*
* To modify these typings, edit the source file(s):
* lib/legacy/polymer-fn.html
*/
// tslint:disable:variable-name Describing an API that's defined elsewhere.
/// <reference path="class.d.ts" />
/**
* Legacy class factory and registration helper for defining Polymer
* elements.
*
* This method is equivalent to
* `customElements.define(info.is, Polymer.Class(info));`
*
* See `Polymer.Class` for details on valid legacy metadata format for `info`.
*
* @returns Generated class
*/
declare function Polymer(info: PolymerInit): {new(): HTMLElement};