@@ -7,8 +7,8 @@ import {findTarget, findTargets} from './findtarget.js'
7
7
* property field. In other words, `@target foo` becomes a getter for
8
8
* `findTarget(this, 'foo')`.
9
9
*/
10
- export function target < K extends string > ( proto : Record < K , unknown > , key : K ) {
11
- return Object . defineProperty ( proto , key , {
10
+ export function target < K extends string > ( proto : Record < K , unknown > , key : K ) : void {
11
+ Object . defineProperty ( proto , key , {
12
12
configurable : true ,
13
13
get ( ) {
14
14
return findTarget ( this , key )
@@ -23,8 +23,8 @@ export function target<K extends string>(proto: Record<K, unknown>, key: K) {
23
23
* property field. In other words, `@targets foo` becomes a getter for
24
24
* `findTargets(this, 'foo')`.
25
25
*/
26
- export function targets < K extends string > ( proto : Record < K , unknown > , key : K ) {
27
- return Object . defineProperty ( proto , key , {
26
+ export function targets < K extends string > ( proto : Record < K , unknown > , key : K ) : void {
27
+ Object . defineProperty ( proto , key , {
28
28
configurable : true ,
29
29
get ( ) {
30
30
return findTargets ( this , key )
0 commit comments