Skip to content

Commit

Permalink
fix: type context, components in SliceZoneProps (#159)
Browse files Browse the repository at this point in the history
Co-authored-by: Mikhail Belov <[email protected]>
  • Loading branch information
Vorseek and Vorseek authored Jun 27, 2022
1 parent b630f12 commit edb21ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SliceZone.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ export type SliceZoneProps<TContext = unknown> = {
* A record mapping Slice types to React components.
*/
// eslint-disable-next-line @typescript-eslint/no-explicit-any
components?: Record<string, SliceComponentType<any>>;
components?: Record<string, SliceComponentType<any, TContext>>;

/**
* A function that determines the rendered React component for each Slice in
Expand Down

0 comments on commit edb21ec

Please sign in to comment.