isCapability

Function

Validate a capability. This is used because the libary can be used outside of typescript and we want to be able to return a message is the string passed in is not a valid capability

  • isCapability(maybeCapability: string) : boolean

Parameters

Parameter Type Default Notes
maybeCapability Required string

Returns

boolean

Function defined in common/src/capabilities/types.ts:33