Skip to content

Commit

Permalink
fix(esl-share): fix share() method signature of print action
Browse files Browse the repository at this point in the history
  • Loading branch information
dshovchko committed Dec 12, 2023
1 parent fe8543d commit ca7091d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/modules/esl-share/actions/print-action.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import {ESLShareBaseAction} from '../core/esl-share-action';

import type {ESLShareButton} from '../core/esl-share-button';

/** Print action {@link ESLShareBaseAction} implementation */
@ESLShareBaseAction.register
export class ESLSharePrintAction extends ESLShareBaseAction {
public static override readonly is: string = 'print';

/** Does an action to share */
public override share(): void {
public override share($button: ESLShareButton): void {
window.print();
}
}

0 comments on commit ca7091d

Please # to comment.