[F] validateDecoratorNotOnType
function validateDecoratorNotOnType( context, type, badDecorator, givenDecorator): booleanValidate that a given decorator is not on a type or any of its base types. Useful to check for decorator usage that conflicts with another decorator.
Parameters
| Parameter | Type | Description |
|---|---|---|
context | DecoratorContext | Decorator context |
type | Type | The type to check |
badDecorator | DecoratorFunction | The decorator we donโt want present |
givenDecorator | DecoratorFunction | The decorator that is the reason why we donโt want the bad decorator present |
Returns
boolean
Whether the decorator application is valid