Commit 89f4f34e authored by Jakob Moser's avatar Jakob Moser
Browse files

Add more typehints

parent 53b57428
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -41,9 +41,9 @@ function startExercise(exercise) {
    const cardEl = document.querySelector(`.exercise[data-exercise-index='${exercise.index}']`)

    exercise.markAsCurrent(currentState)
    exercise.onDescribed(description => cardEl.querySelector(".description").textContent = description)
    exercise.onDescribed((/** @type {string} */ description) => cardEl.querySelector(".description").textContent = description)
    exercise.onVerified(
        success => {
        (/** @type {boolean} */ success) => {
            if (success) {
                exercise.markAsSolved(currentState)
                displayAsSolved(cardEl)