fix: Fix vue type warnings (no-changelog) (#9038)

This commit is contained in:
Tomi Turtiainen 2024-04-03 15:04:21 +03:00 committed by GitHub
parent 83e47398f3
commit 77b359ada6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 7 additions and 5 deletions

View file

@ -5,14 +5,15 @@
</template>
<script lang="ts" setup>
import type { FontAwesomeIconProps } from '@fortawesome/vue-fontawesome';
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
import type { IconSize, IconColor } from '@/types/icon';
import N8nText from '../N8nText';
interface IconProps {
icon: string;
icon: FontAwesomeIconProps['icon'];
size?: IconSize;
spin?: boolean;
spin?: FontAwesomeIconProps['spin'];
color?: IconColor;
}

View file

@ -27,7 +27,8 @@ interface RadioOption {
interface RadioButtonsProps {
modelValue?: string;
options?: RadioOption[];
size: 'small' | 'medium';
/** @default medium */
size?: 'small' | 'medium';
disabled?: boolean;
}

View file

@ -13,7 +13,7 @@ export interface IconButtonProps {
active?: boolean;
disabled?: boolean;
float?: TextFloat;
icon?: string;
icon?: string | string[];
loading?: boolean;
outline?: boolean;
size?: ButtonSize;

View file

@ -52,7 +52,7 @@
v-touch:tap="deleteNode"
class="option"
data-test-id="delete-sticky"
:title="$locale.baseText('node.deleteNode')"
:title="$locale.baseText('node.delete')"
>
<font-awesome-icon icon="trash" />
</div>