Skip to content

Commit

Permalink
style: use PrimitiveLevelPropConfiguration
Browse files Browse the repository at this point in the history
  • Loading branch information
dpilch committed Feb 10, 2022
1 parent ecbd5b5 commit c9e6cbc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/codegen-ui-react/lib/primitive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,7 @@ export const PrimitivesWithChangeEvent: Set<Primitive> = new Set([
Primitive.TextField,
]);

export const PrimitiveDefaultPropertyValue: Partial<
Record<Primitive, { [property: string]: FixedStudioComponentProperty }>
> = {
export const PrimitiveDefaultPropertyValue: PrimitiveLevelPropConfiguration<FixedStudioComponentProperty> = {
[Primitive.CheckboxField]: {
checked: { value: false, type: 'boolean' },
},
Expand Down

0 comments on commit c9e6cbc

Please sign in to comment.