Skip to content

Commit 6908cfe

Browse files
benelanYona Nagayama
authored andcommitted
refactor(input): fix all types that are any (#3981)
1 parent b26160c commit 6908cfe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/calcite-input/calcite-input.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ export class CalciteInput implements LabelableComponent, FormComponent {
321321
this.setDisabledAction();
322322
}
323323

324-
componentShouldUpdate(newValue: any, oldValue: any, property: string): boolean {
324+
componentShouldUpdate(newValue: string, oldValue: string, property: string): boolean {
325325
if (this.type === "number" && property === "value" && newValue && !isValidNumber(newValue)) {
326326
this.setValue({
327327
value: oldValue
@@ -671,7 +671,7 @@ export class CalciteInput implements LabelableComponent, FormComponent {
671671
value
672672
}: {
673673
committing?: boolean;
674-
nativeEvent?: any;
674+
nativeEvent?: MouseEvent | KeyboardEvent | InputEvent;
675675
origin?: "internal" | "external" | "loading";
676676
value: string;
677677
}): void => {

0 commit comments

Comments
 (0)