Skip to content

Commit

Permalink
[benc/matrix] Add MatrixPublicWidgetOptions type
Browse files Browse the repository at this point in the history
  • Loading branch information
benchristel committed Feb 7, 2025
1 parent acc3e79 commit dadff7a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/perseus-core/src/widgets/matrix/matrix-util.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
import type {PerseusMatrixWidgetOptions} from "@khanacademy/perseus-core";

type MatrixPublicWidgetOptions = Pick<
PerseusMatrixWidgetOptions,
"prefix" | "suffix" | "cursorPosition" | "matrixBoardSize" | "static"
>;

export default function getMatrixPublicWidgetOptions(
options: PerseusMatrixWidgetOptions,
) {
): MatrixPublicWidgetOptions {
const {answers: _, ...publicOptions} = options;
return publicOptions;
}

0 comments on commit dadff7a

Please sign in to comment.