feat(downloads): add option to limit amount of items (#3205)

This commit is contained in:
Meier Lukas authored and GitHub committed 2025-05-24 17:49:39 +02:00
1 parent f7e5e823d5
commit 2dc871e531
19 files changed
+117 -87

No files matched your search

+2 -2
View File
@@ -43,7 +43,7 @@ interface SelectInput<TOptions extends readonly SelectOption[]>
searchable?: boolean;
}
interface NumberInput extends CommonInput<number | ""> {
interface NumberInput extends CommonInput<number> {
validate: z.ZodNumber;
step?: number;
}
@@ -87,7 +87,7 @@ const optionsFactory = {
}),
number: (input: NumberInput) => ({
type: "number" as const,
defaultValue: input.defaultValue ?? ("" as const),
defaultValue: input.defaultValue ?? 0,
step: input.step,
withDescription: input.withDescription ?? false,
validate: input.validate,