From d767c04189ed2d8be0185b79f63be1f2ce06928a Mon Sep 17 00:00:00 2001 From: Shinichi Okada <147320+shinokada@users.noreply.github.com> Date: Wed, 30 Oct 2024 09:05:44 +0100 Subject: [PATCH] fix: #1468 add optional ? to types --- src/lib/steps/StepIndicator.svelte | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/lib/steps/StepIndicator.svelte b/src/lib/steps/StepIndicator.svelte index 30469b693..c19ee9fad 100644 --- a/src/lib/steps/StepIndicator.svelte +++ b/src/lib/steps/StepIndicator.svelte @@ -3,14 +3,14 @@ import { twMerge, twJoin } from 'tailwind-merge'; interface $$Props extends HTMLAttributes { - steps: string[]; - currentStep: number; - size: string; - color: 'primary' | 'secondary' | 'gray' | 'red' | 'yellow' | 'green' | 'indigo' | 'purple' | 'pink' | 'blue' | 'custom'; - glow: boolean; - hideLabel: boolean; - completedCustom: string; - currentCustom: string; + steps?: string[]; + currentStep?: number; + size?: string; + color?: 'primary' | 'secondary' | 'gray' | 'red' | 'yellow' | 'green' | 'indigo' | 'purple' | 'pink' | 'blue' | 'custom'; + glow?: boolean; + hideLabel?: boolean; + completedCustom?: string; + currentCustom?: string; } export let steps: $$Props['steps'] = ['Step 1', 'Step 2', 'Step 3', 'Step 4', 'Step 5'];