Skip to content

Commit

Permalink
fix: lazy decorator type signature
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack-Works committed Apr 26, 2023
1 parent e4a73d5 commit da5b0b9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/grumpy-moles-destroy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@masknet/kit': patch
---

fix lazy decorator type signature
3 changes: 2 additions & 1 deletion src/ecmascript/lazyDecorator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
* }
*/
export function lazy<T, V>(
target: ClassAccessorDecoratorTarget<T, V>, // context: ClassAccessorDecoratorContext<T, V>
target: ClassAccessorDecoratorTarget<T, V>,
_context: ClassAccessorDecoratorContext<T, V>,
): ClassAccessorDecoratorResult<T, V> {
const { get, set } = target
let init = false
Expand Down

0 comments on commit da5b0b9

Please sign in to comment.