* fix: a11y - missing 'alt' text for Problem Editor IconButton * fix: warning in <ProblemTypeSelect> component - missing key prop in list * fix: warning: `problemType` required in `ProblemEditor`, but is `null` * fix: warning: The prop `onClose` marked as required in `SelectTypeModal` * fix: warning: prop `name` is marked as required in `ForwardRef(_c)` * fix: warning: props `alt`, `id`, and `key` are required * test: improve test coverage of SelectTypeModal, refactor some code * test: improve test coverage
7 lines
259 B
TypeScript
7 lines
259 B
TypeScript
/** Shared interface that all Editor components (like ProblemEditor) adhere to */
|
|
export interface EditorComponent {
|
|
onClose: (() => void) | null;
|
|
// TODO: get a better type for the 'result' here
|
|
returnFunction?: (() => (result: any) => void) | null;
|
|
}
|