Skip to content

Commit

Permalink
fix(widget-element): fix protected method types
Browse files Browse the repository at this point in the history
  • Loading branch information
andrepolischuk committed Sep 10, 2024
1 parent 79c2d44 commit 61b76bf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions packages/widget-element/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,15 +143,15 @@ export class WidgetElement<T = any> extends HTMLElement {

/** Widget is initialized, and shadow root is attached */
// eslint-disable-next-line no-empty-function
initialize(_shadowRoot: ShadowRoot) {}
protected initialize(_shadowRoot: ShadowRoot) {}

/** An attribute of widget is changed */
// eslint-disable-next-line no-empty-function
attributeChanged() {}
protected attributeChanged() {}

/** Widget is destroyed */
// eslint-disable-next-line no-empty-function
destroy() {}
protected destroy() {}

/**
* Get fallback (slot element by default)
Expand All @@ -164,7 +164,7 @@ export class WidgetElement<T = any> extends HTMLElement {
* }
* ```
*/
get fallback() {
protected get fallback() {
return `<slot></slot>`
}

Expand Down
3 changes: 2 additions & 1 deletion typedoc.package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"extends": "@rambler-tech/typedoc-config",
"readme": "./README.md",
"entryPoints": ["./index.ts"]
"entryPoints": ["./index.ts"],
"excludeProtected": false
}

0 comments on commit 61b76bf

Please sign in to comment.