Skip to content

Commit

Permalink
fix: types
Browse files Browse the repository at this point in the history
  • Loading branch information
betocantu93 committed Jan 8, 2024
1 parent db4dbd4 commit feaed50
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 37 deletions.
8 changes: 5 additions & 3 deletions addon/modifiers/attach-qr-scanner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@ interface Named {
type Positional = [MediaStream];

export interface AttachQrScannerModifierSignature {
positional: Positional;
named: Named;
Element: HTMLCanvasElement;
Args: {
Positional: Positional;
Named: Named;
};
}

const DEFAULT_COLOR = '#FF3B58';
Expand Down Expand Up @@ -95,7 +98,6 @@ export default class AttachQrScannerModifier extends Modifier<AttachQrScannerMod
tick() {
if (!this.scanner.jsQR) return;
if (!this.video || !this.canvas) return;
if (this.isDestroyed || this.isDestroying) return;

if (this.video.readyState === this.video.HAVE_ENOUGH_DATA) {
this.element.height = this.video.videoHeight;
Expand Down
34 changes: 0 additions & 34 deletions types/ember-modifier.d.ts

This file was deleted.

0 comments on commit feaed50

Please sign in to comment.