( prefix?: string | Record<string, string>, )
| 14 | }; |
| 15 | |
| 16 | export function vector2Signal( |
| 17 | prefix?: string | Record<string, string>, |
| 18 | ): PropertyDecorator { |
| 19 | return (target, key) => { |
| 20 | compound( |
| 21 | typeof prefix === 'object' |
| 22 | ? prefix |
| 23 | : { |
| 24 | x: prefix ? `${prefix}X` : 'x', |
| 25 | y: prefix ? `${prefix}Y` : 'y', |
| 26 | }, |
| 27 | )(target, key); |
| 28 | wrapper(Vector2)(target, key); |
| 29 | }; |
| 30 | } |
no test coverage detected