diff --git a/packages/perseus/src/widgets/graded-group/graded-group.tsx b/packages/perseus/src/widgets/graded-group/graded-group.tsx index 6d31abc5f7..cf96cfecf6 100644 --- a/packages/perseus/src/widgets/graded-group/graded-group.tsx +++ b/packages/perseus/src/widgets/graded-group/graded-group.tsx @@ -102,7 +102,10 @@ type State = { // PropsFor type takes defaultProps into account, which is important // because PerseusGradedGroupWidgetOptions has optional fields which receive defaults // via defaultProps. -0 as any as WidgetProps satisfies PropsFor; +0 as any as WidgetProps< + PerseusGradedGroupWidgetOptions, + PerseusGradedGroupRubric +> satisfies PropsFor; // A Graded Group is more or less a Group widget that displays a check // answer button below the rendered content. When clicked, the widget grades diff --git a/packages/perseus/src/widgets/matrix/matrix.tsx b/packages/perseus/src/widgets/matrix/matrix.tsx index 0c42f185d2..84f9065776 100644 --- a/packages/perseus/src/widgets/matrix/matrix.tsx +++ b/packages/perseus/src/widgets/matrix/matrix.tsx @@ -125,7 +125,10 @@ type ExternalProps = WidgetProps< // defaultProps into account, which is important because // PerseusMatrixWidgetOptions has optional fields which receive defaults via // defaultProps. -0 as any as WidgetProps satisfies PropsFor; +0 as any as WidgetProps< + PerseusMatrixWidgetOptions, + PerseusMatrixRubric +> satisfies PropsFor; type Props = ExternalProps & { onChange: (