Skip to content

Commit 1935501

Browse files
keithamuskoddsson
andcommitted
fix typescript errors
Co-authored-by: Kristján Oddsson <koddsson@gmail.com>
1 parent 4cf4f01 commit 1935501

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/target.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ 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): void {
10+
export function target<K extends string>(proto: Record<K, unknown>, key: K) {
1111
return Object.defineProperty(proto, key, {
1212
configurable: true,
1313
get() {
@@ -23,7 +23,7 @@ export function target<K extends string>(proto: Record<K, unknown>, key: K): voi
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): void {
26+
export function targets<K extends string>(proto: Record<K, unknown>, key: K) {
2727
return Object.defineProperty(proto, key, {
2828
configurable: true,
2929
get() {

0 commit comments

Comments
 (0)