Skip to content

Commit

Permalink
chore: add some jsdoc to explicit types
Browse files Browse the repository at this point in the history
  • Loading branch information
HEYGUL authored Nov 6, 2024
1 parent 366eef3 commit 293d7aa
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
/**
* @typedef {import('../../../flash-certification/domain/models/FlashAssessmentAlgorithm.js').FlashAssessmentAlgorithm} FlashAssessmentAlgorithm
* @typedef {import('./CertificationChallengeForScoring.js').CertificationChallengeForScoring} CertificationChallengeForScoring
* @typedef {import('../../../../evaluation/domain/models/Answer.js').Answer} Answer
*/
import { CertificationChallengeCapacity } from './CertificationChallengeCapacity.js';

export class CertificationAssessmentHistory {
constructor({ capacityHistory }) {
this.capacityHistory = capacityHistory;
}
// WARN: challenges are not Array<Challenge> but Array<CertificationChallengeForScoring>
/**
* @param {Object} params
* @param {FlashAssessmentAlgorithm } params.algorithm
* @param {Array<CertificationChallengeForScoring>} params.challenges
* @param {Array<Answer>} params.allAnswers
**/
static fromChallengesAndAnswers({ algorithm, challenges, allAnswers }) {
const capacityAndErrorRateHistory = algorithm.getCapacityAndErrorRateHistory({
allAnswers,
Expand Down

0 comments on commit 293d7aa

Please sign in to comment.