Skip to content

Commit

Permalink
Add comment to validation function
Browse files Browse the repository at this point in the history
  • Loading branch information
Myranae committed Nov 20, 2024
1 parent b203d48 commit 74bf0e6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/perseus/src/widgets/orderer/validate-orderer.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
import type {PerseusScore} from "../../types";
import type {PerseusOrdererUserInput} from "../../validation.types";

/**
* Checks user inputfrom the orderer widget to see if the user has started
* ordering the options, making the widget scorable.
* @param userInput
* @see `scoreOrderer` for more details.
*/
function validateOrderer(
userInput: PerseusOrdererUserInput,
): Extract<PerseusScore, {type: "invalid"}> | null {
Expand Down

0 comments on commit 74bf0e6

Please sign in to comment.