Ga naar hoofdinhoud

isKnownToken

True when token is a member of the closed CANONICAL sentinel vocabulary (in any context). Deprecated tokens are NOT canonical and return false — detect those with matchDeprecation.

Signature

import { isKnownToken } from '@conduction/nextcloud-vue'

isKnownToken(token)
ArgumentTypeDescription
tokenstringThe @-prefixed token.

Return value

Returns boolean.

See also

  • contextOf — returns the specific context instead of a boolean.
  • classifyToken — combined known / deprecated / unknown classification.