Skip to content

Commit

Permalink
fix type errors in LayoutRegistration.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
bennettp123 committed Apr 9, 2024
1 parent 2970d5d commit 6fdfc22
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/json-react-layouts/src/LayoutRegistration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ interface RegisterComponentsStep<Services extends {}> {
export interface CompositionRegistrationBuilderStart<
Components extends ComponentInformation<any, any>,
ComponentMiddlewaresProps extends {},
Services
Services extends {} = {}
> {
registerComposition<TType extends string, TContentAreas extends string, TProps>(
registerComposition<TType extends string, TContentAreas extends string, TProps extends {} = {}>(
registration: CompositionRegistration<TType, TContentAreas, Services, TProps>,
): CompositionRegistrationBuilder<
Components,
Expand All @@ -49,9 +49,9 @@ export interface CompositionRegistrationBuilder<
ComponentMiddlewaresProps extends {},
Compositions extends CompositionInformation<any, any, any>,
CompositionMiddlewaresProps extends {},
Services
Services extends {} = {}
> {
registerComposition<TType extends string, TContentAreas extends string, TProps>(
registerComposition<TType extends string, TContentAreas extends string, TProps extends {} = {}>(
registration: CompositionRegistration<TType, TContentAreas, Services, TProps>,
): CompositionRegistrationBuilder<
Components,
Expand Down

0 comments on commit 6fdfc22

Please sign in to comment.