docs(8.0): add module JSDoc to typeValidation.ts (the one file missing a module block)
This commit is contained in:
parent
1aad1f67de
commit
ab53fa0893
1 changed files with 8 additions and 0 deletions
|
|
@ -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'
|
import { NounType, VerbType } from '../types/graphTypes.js'
|
||||||
|
|
||||||
// Type sets for O(1) validation
|
// Type sets for O(1) validation
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue