@empathyco/x-components
Version:
Empathy X Components
14 lines (8 loc) • 528 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [DecoratorFor](./x-components.decoratorfor.md)
## DecoratorFor type
Creates a decorator that will only work for properties of the type passed. The decorator will only work if the property is public.
**Signature:**
```typescript
export type DecoratorFor<Type> = <Key extends string, Target extends Record<Key, Type>>(target: Target, key: Key) => void;
```