Skip to content

Commit da5b0b9

Browse files
committed
fix: lazy decorator type signature
1 parent e4a73d5 commit da5b0b9

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.changeset/grumpy-moles-destroy.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@masknet/kit': patch
3+
---
4+
5+
fix lazy decorator type signature

src/ecmascript/lazyDecorator.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
* }
77
*/
88
export function lazy<T, V>(
9-
target: ClassAccessorDecoratorTarget<T, V>, // context: ClassAccessorDecoratorContext<T, V>
9+
target: ClassAccessorDecoratorTarget<T, V>,
10+
_context: ClassAccessorDecoratorContext<T, V>,
1011
): ClassAccessorDecoratorResult<T, V> {
1112
const { get, set } = target
1213
let init = false

0 commit comments

Comments
 (0)