Skip to content

Commit

Permalink
Add explicit returns types to mixins (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
koddsson authored Mar 29, 2024
1 parent 786b44d commit bc6abf4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ interface CustomElement extends HTMLElement {
adoptedCallback?(): void;
}

export function ProviderMixin(Class: CustomElement) {
export function ProviderMixin(Class: CustomElement): CustomElement {
return class extends Class {
#dataStore = new ObservableMap();

Expand Down Expand Up @@ -72,7 +72,7 @@ export function ProviderMixin(Class: CustomElement) {
};
}

export function ConsumerMixin(Class: CustomElement) {
export function ConsumerMixin(Class: CustomElement): CustomElement {
return class extends Class {
unsubscribes: Array<() => void> = [];

Expand Down

0 comments on commit bc6abf4

Please sign in to comment.