Skip to content

Commit

Permalink
Fix type for float defaultValue (#5131)
Browse files Browse the repository at this point in the history
  • Loading branch information
timleslie authored Mar 15, 2021
1 parent 76831d7 commit 1eeac47
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/chilly-pigs-sleep.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@keystone-next/fields': patch
---

Fixed type for `float({ defaultValue })`.
2 changes: 1 addition & 1 deletion packages-next/fields/src/types/float/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export type FloatFieldConfig<
isRequired?: boolean;
isIndexed?: boolean;
isUnique?: boolean;
defaultValue?: FieldDefaultValue<string>;
defaultValue?: FieldDefaultValue<number>;
};

export const float = <TGeneratedListTypes extends BaseGeneratedListTypes>(
Expand Down

1 comment on commit 1eeac47

@vercel
Copy link

@vercel vercel bot commented on 1eeac47 Mar 15, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.