https://github.com/atomicojs/wrapper
https://github.com/atomicojs/wrapper
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/atomicojs/wrapper
- Owner: atomicojs
- Created: 2022-09-20T15:46:24.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2023-07-18T21:17:01.000Z (almost 3 years ago)
- Last Synced: 2025-04-30T00:35:16.787Z (about 1 year ago)
- Language: TypeScript
- Size: 147 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# @atomico/wrapper
Captura el registro de los customElements para asi lograr optener su tagName
```js
import { getDefinition } from "@atomico/wrapper";
class MyElement extends HTMLElement {}
customElements.define("my-element", MyElement);
console.log(getDefinition(MyElement)); // ["my-element", undefined];
```