chore(8.0): final pre-RC1 sweep — API consistency, named errors, orphans, zero-cast codebase

This commit is contained in:
David Snelling 2026-06-11 14:51:00 -07:00
parent 970e08c466
commit 1f7e365a4e
237 changed files with 1951 additions and 49413 deletions

View file

@ -51,7 +51,7 @@ export function validateGraphNoun(noun: unknown): ValidatedGraphNoun {
if (!noun || typeof noun !== 'object') {
throw new Error('Invalid noun: must be an object')
}
const n = noun as any
const n = noun as Record<string, unknown>
if (!n.noun) {
throw new Error('Invalid noun: missing required "noun" type field')
}
@ -63,7 +63,7 @@ export function validateGraphVerb(verb: unknown): ValidatedGraphVerb {
if (!verb || typeof verb !== 'object') {
throw new Error('Invalid verb: must be an object')
}
const v = verb as any
const v = verb as Record<string, unknown>
if (!v.verb) {
throw new Error('Invalid verb: missing required "verb" type field')
}
@ -346,8 +346,8 @@ export function validateSearchOptions(options: unknown, paramName = 'options'):
throw new ValidationError(paramName, options, 'must be an object')
}
const opts = options as any
const opts = options as Record<string, unknown>
// Validate limit
if ('limit' in opts) {
const limit = opts.limit