Skip to content

Commit

Permalink
include init in functional element output
Browse files Browse the repository at this point in the history
  • Loading branch information
electrovir committed Feb 23, 2022
1 parent 16d34c7 commit 7aea5d8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "element-vir",
"version": "4.1.2",
"version": "4.1.3",
"keywords": [
"custom",
"web",
Expand Down
2 changes: 2 additions & 0 deletions src/functional-element/define-functional-element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ export function defineFunctionalElement<
);
}

public static initInput = functionalElementInit;

public static readonly events: ExtraStaticFunctionalElementProperties<
PropertyInitGeneric,
EventsInitGeneric
Expand Down
1 change: 1 addition & 0 deletions src/functional-element/functional-element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export type ExtraStaticFunctionalElementProperties<
renderCallback: RenderCallback<PropertyInitGeneric, EventsInitGeneric>;
events: EventDescriptorMap<EventsInitGeneric>;
props: ElementPropertyDescriptorMap<PropertyInitGeneric>;
initInput: FunctionalElementInit<PropertyInitGeneric, EventsInitGeneric>;

/**
* Static properties have to be copied here cause they get nuked in the "new () =>
Expand Down

0 comments on commit 7aea5d8

Please sign in to comment.