Skip to content

Commit 0fc88d7

Browse files
committed
fix(slide-potentiometer): add types to properties
1 parent 3803606 commit 0fc88d7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/slide-potentiometer-element.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ import { mmToPix } from './utils/units';
55

66
@customElement('wokwi-slide-potentiometer')
77
export class SlidePotentiometerElement extends LitElement {
8-
@property() travelLength = 30;
9-
@property() value = 0;
10-
@property() min = 0;
11-
@property() max = 100;
12-
@property() step = 2;
8+
@property({ type: Number }) travelLength = 30;
9+
@property({ type: Number }) value = 0;
10+
@property({ type: Number }) min = 0;
11+
@property({ type: Number }) max = 100;
12+
@property({ type: Number }) step = 2;
1313

1414
get pinInfo(): ElementPin[] {
1515
return [

0 commit comments

Comments
 (0)