mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
refactor: Enforce no-explicit-any in design-system (no-changelog) (#4937)
👕 Enforce `no-explicit-any` in design-system
This commit is contained in:
@@ -75,12 +75,12 @@ import N8nInputLabel from '../N8nInputLabel';
|
||||
import N8nCheckbox from '../N8nCheckbox';
|
||||
|
||||
import { getValidationError, VALIDATORS } from './validators';
|
||||
import { Rule, RuleGroup, IValidator } from '../../types';
|
||||
import { Rule, RuleGroup, IValidator, Validatable, FormState } from '../../types';
|
||||
|
||||
import { t } from '../../locale';
|
||||
|
||||
export interface Props {
|
||||
value: any;
|
||||
value: Validatable;
|
||||
label: string;
|
||||
infoText?: string;
|
||||
required?: boolean;
|
||||
@@ -112,7 +112,7 @@ const props = withDefaults(defineProps<Props>(), {
|
||||
|
||||
const emit = defineEmits<{
|
||||
(event: 'validate', shouldValidate: boolean): void;
|
||||
(event: 'input', value: any): void;
|
||||
(event: 'input', value: unknown): void;
|
||||
(event: 'focus'): void;
|
||||
(event: 'blur'): void;
|
||||
(event: 'enter'): void;
|
||||
@@ -169,7 +169,7 @@ function onBlur() {
|
||||
emit('blur');
|
||||
}
|
||||
|
||||
function onInput(value: any) {
|
||||
function onInput(value: FormState) {
|
||||
state.isTyping = true;
|
||||
emit('input', value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user