refactor: use index exports
This commit is contained in:
parent
703ef9e45d
commit
b613d8e77c
7 changed files with 6 additions and 12 deletions
|
@ -1,7 +1,5 @@
|
|||
// @ts-check
|
||||
import { WebComponent } from "../../src/WebComponent.js";
|
||||
import { attachEffect } from "../../src/attach-effect.js";
|
||||
|
||||
import { WebComponent, attachEffect } from "../../src/";
|
||||
export class Counter extends WebComponent {
|
||||
static properties = ["count"];
|
||||
onInit() {
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
// @ts-check
|
||||
import { WebComponent } from "../../src/WebComponent.js";
|
||||
import { attachEffect } from "../../src/attach-effect.js";
|
||||
import { WebComponent, attachEffect } from "../../src/";
|
||||
|
||||
export class Decrease extends WebComponent {
|
||||
static properties = ["count"];
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { WebComponent } from "../../src/WebComponent.js";
|
||||
import { WebComponent } from "../../src";
|
||||
|
||||
export class BooleanPropTest extends WebComponent {
|
||||
static properties = ["is-inline", "anotherone"];
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// @ts-check
|
||||
import { WebComponent } from "../../src/WebComponent.js";
|
||||
import { WebComponent } from "../../src";
|
||||
|
||||
export class Counter extends WebComponent {
|
||||
static properties = ["count"];
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// @ts-check
|
||||
import { WebComponent } from "../../src/WebComponent.js";
|
||||
import { WebComponent } from "../../src";
|
||||
|
||||
export class HelloWorld extends WebComponent {
|
||||
static properties = ["count", "emotion"];
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// @ts-check
|
||||
import { WebComponent } from "../../src/WebComponent.js";
|
||||
import { WebComponent } from "../../src"
|
||||
|
||||
class SimpleText extends WebComponent {
|
||||
clickCallback() {
|
||||
|
|
|
@ -70,9 +70,6 @@ export class WebComponent extends HTMLElement {
|
|||
if (typeof this.template === "string") this.innerHTML = this.template;
|
||||
}
|
||||
|
||||
/**
|
||||
* start HTMLElement callbacks
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
this.#initializeProps();
|
||||
|
|
Loading…
Reference in a new issue