@serenity-is/corelib / hasCustomAttribute
Function: hasCustomAttribute()
hasCustomAttribute<
TAttr>(type,attrType,inherit):boolean
Defined in: src/base/system.ts:508
Get whether a type has a specific custom attribute.
Type Parameters
TAttr
TAttr extends CustomAttribute
Parameters
type
any
Type to check
attrType
(...args) => TAttr
Attribute type to check
inherit
boolean = true
Indicates whether to search in base types
Returns
boolean
True if the type has the attribute