( value: InterpolationFunction<T>, )
| 186 | * @param value - The interpolation function for the property. |
| 187 | */ |
| 188 | export function interpolation<T>( |
| 189 | value: InterpolationFunction<T>, |
| 190 | ): PropertyDecorator { |
| 191 | return (target: any, key) => { |
| 192 | const meta = getPropertyMeta<T>(target, key); |
| 193 | if (!meta) { |
| 194 | useLogger().error(`Missing property decorator for "${key.toString()}"`); |
| 195 | return; |
| 196 | } |
| 197 | meta.interpolationFunction = value; |
| 198 | }; |
| 199 | } |
| 200 | |
| 201 | /** |
| 202 | * Create a signal parser decorator. |
no test coverage detected