@@ -7,8 +7,8 @@ import {findTarget, findTargets} from './findtarget.js'
77 * property field. In other words, `@target foo` becomes a getter for
88 * `findTarget(this, 'foo')`.
99 */
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 , {
1212 configurable : true ,
1313 get ( ) {
1414 return findTarget ( this , key )
@@ -23,8 +23,8 @@ export function target<K extends string>(proto: Record<K, unknown>, key: K) {
2323 * property field. In other words, `@targets foo` becomes a getter for
2424 * `findTargets(this, 'foo')`.
2525 */
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 , {
2828 configurable : true ,
2929 get ( ) {
3030 return findTargets ( this , key )
0 commit comments