We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 74816d7 commit be253d4Copy full SHA for be253d4
packages/perseus-editor/src/widgets/group-editor.tsx
@@ -3,6 +3,7 @@
3
import {ApiOptions, Changeable} from "@khanacademy/perseus";
4
import PropTypes from "prop-types";
5
import * as React from "react";
6
+import invariant from "tiny-invariant";
7
import _ from "underscore";
8
9
import Editor from "../editor";
@@ -69,7 +70,8 @@ class GroupEditor extends React.Component<Props> {
69
70
return Changeable.change.apply(this, args);
71
};
72
- getSaveWarnings: () => ReadonlyArray<any> = () => {
73
+ getSaveWarnings: () => ReadonlyArray<string> = () => {
74
+ invariant(this.editor.current != null);
75
return this.editor.current?.getSaveWarnings();
76
77
0 commit comments