Web-Types is a framework-agnostic format aimed at providing IDEs and other tools with the metadata information about the contents of a component library. Its powerful name patterns allow encoding information about web framework syntax or customizing code completion suggestions for large icon libraries in the IDEs that support Web-Types.
See web-types project
paper-elements-web-types
contains Web-Types definition of
Polymer Elements components.
To use it when working with lit you need lit-web-types
extra dependency to enable autocompletion on your project.
npm i lit-web-types paper-elements-web-types -D
If using IntelliJ or WebStorm, IDE restart might be needed after install to enable autocomplete.
To use it when working with polymer you need polymer-web-types
extra dependency to enable autocompletion on your project.
npm i polymer-web-types paper-elements-web-types -D
If using IntelliJ or WebStorm, IDE restart might be needed after install to enable autocomplete.
Steps to update web-types definitions of paper-elements-web-types
package:
src/gen
folder contains generated sources by web-component-analyser
, should not be updated
by hand, only via generator:
npm run web-types
Other sources in src
can be updated by hand.
npm run build
npm version patch && npm publish && git push && git push --tags