Skip to content

Commit

Permalink
🏷️ [open-formulieren/open-forms#4813] Added PrefillConfig to BaseNumb…
Browse files Browse the repository at this point in the history
…erComponentSchema
  • Loading branch information
robinmolen committed Nov 8, 2024
1 parent 5573e25 commit 2085b55
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/formio/components/number.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {InputComponentSchema} from '..';
import {InputComponentSchema, PrefillConfig} from '..';

type Validator = 'required' | 'min' | 'max';
type TranslatableKeys = 'label' | 'description' | 'tooltip' | 'suffix';
Expand All @@ -10,7 +10,8 @@ export type NumberInputSchema = InputComponentSchema<number | null, Validator, T
* @category Base types
*/
export interface BaseNumberComponentSchema
extends Omit<NumberInputSchema, 'hideLabel' | 'placeholder'> {
extends Omit<NumberInputSchema, 'hideLabel' | 'placeholder'>,
PrefillConfig {
type: 'number';
defaultValue?: number | null;
/*
Expand Down

0 comments on commit 2085b55

Please sign in to comment.