File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -371,6 +371,8 @@ export const GradingMethodKeys = StrictDict({
371371 FIRST_SCORE : 'first_score' ,
372372} ) ;
373373
374+ export type GradingMethodKey = typeof GradingMethodKeys [ keyof typeof GradingMethodKeys ] ;
375+
374376export const GradingMethod = StrictDict ( {
375377 [ GradingMethodKeys . LAST_SCORE ] : {
376378 id : 'authoring.problemeditor.settings.gradingmethod.last_score' ,
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import * as video from './video';
99import * as problem from './problem' ;
1010import * as game from './game' ;
1111import type { RequestKeys , RequestStates } from '../constants/requests' ;
12- import { AdvancedProblemType , GradingMethodKeys , ProblemType } from '../constants/problem' ;
12+ import { AdvancedProblemType , type GradingMethodKey , ProblemType } from '../constants/problem' ;
1313
1414export { default as thunkActions } from './thunkActions' ;
1515
@@ -176,7 +176,7 @@ export interface EditorState {
176176 scoring : {
177177 weight : number ;
178178 attempts : { unlimited : boolean ; number : number | null ; } ;
179- gradingMethod : GradingMethodKeys . LAST_SCORE ;
179+ gradingMethod : GradingMethodKey ;
180180 } ,
181181 hints : any [ ] ;
182182 timeBetween : number ;
You can’t perform that action at this time.
0 commit comments