UNPKG

@empathyco/x-components

Version:
14 lines (8 loc) 528 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [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; ```