DeclaredDoc
DeclaredDoc<
TDoc> =unknownextendsTDoc?TDoc:DeclaredKeys<TDoc>
Defined in: packages/core/src/access/constraintTypes.ts:58
TDoc with VexDocument’s [key: string]: unknown index signature removed.
The signature exists so a document can hold schema-defined fields statically, but it
also makes EVERY property name readable at type level: data.tpyo and
data.neverDeclared both resolve to unknown instead of erroring. That silently
defeats the point of typing a permission callback against its resource.
Left alone in the pre-generation case (unknown extends TDoc), where stripping would
turn the document into {} and make every real field unreadable.
Type Parameters
Section titled “Type Parameters”TDoc
Document shape, or unknown when the registry is unaugmented.