docs(8.0): add module JSDoc to typeValidation.ts (the one file missing a module block)

This commit is contained in:
David Snelling 2026-07-01 15:37:25 -07:00
parent 1aad1f67de
commit ab53fa0893

View file

@ -1,3 +1,11 @@
/**
* @module utils/typeValidation
* @description O(1) runtime validation for the {@link NounType} / {@link VerbType}
* enums. Precomputes a `Set` of each enum's values once at module load, then
* exposes type-guard predicates (`isValidNounType` / `isValidVerbType`) and their
* throwing counterparts used by the write-path parameter validators. Pure and
* side-effect-free apart from the two module-level lookup sets.
*/
import { NounType, VerbType } from '../types/graphTypes.js'
// Type sets for O(1) validation