Skip to content

Commit

Permalink
chore: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Nov 22, 2022
1 parent 028d6f9 commit 2284cec
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
}
},
"dependencies": {
"@antfu/utils": "^0.6.3",
"@antfu/utils": "^0.7.0",
"@rollup/pluginutils": "^5.0.2",
"chokidar": "^3.5.3",
"debug": "^4.3.4",
Expand Down
9 changes: 7 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions src/core/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,7 @@ export class Context {
private rawOptions: Options,
) {
this.options = resolveOptions(rawOptions, this.root)
this.generateDeclaration
= throttle(500, false, this._generateDeclaration.bind(this)) as
// `throttle` will omit return value.
((removeUnused?: boolean) => void)
this.generateDeclaration = throttle(500, this._generateDeclaration.bind(this), { noLeading: false })
this.setTransformer(this.options.transformer)
}

Expand Down

0 comments on commit 2284cec

Please sign in to comment.