Skip to content

tokenExpectations

tokenExpectations(tokens, filter?): LayerTokenExpectation[]

Defined in: cli/cli/src/commands/token-expectations/token-expectations.ts:11

Reads what a plugin’s tokens declare (PluginToken.expect) as one entry per token and layer that holds it, in the order of ENVIRONMENT_LAYERS. The one reader the token probes, the doctor and the docs check share, so none of them walks the declaration itself. A token with no expect yields nothing; a layer no token holds is never listed.

readonly PluginToken[]

TokenExpectationFilter = {}

LayerTokenExpectation[]