Validates the alias token at pointer in a document: alias syntax, target existence and kind, cycles, and type compatibility with expectedType (or the token's own or inherited type when omitted).
pointer
expectedType
Optional
const check = validateAliasToken(tokens, '/semantic/primary');check.resolved; // true when the chain ends at a concrete token Copy
const check = validateAliasToken(tokens, '/semantic/primary');check.resolved; // true when the chain ends at a concrete token
Validates the alias token at
pointerin a document: alias syntax, target existence and kind, cycles, and type compatibility withexpectedType(or the token's own or inherited type when omitted).