Skip to content

Commit 2284cec

Browse files
committed
chore: update deps
1 parent 028d6f9 commit 2284cec

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
}
8585
},
8686
"dependencies": {
87-
"@antfu/utils": "^0.6.3",
87+
"@antfu/utils": "^0.7.0",
8888
"@rollup/pluginutils": "^5.0.2",
8989
"chokidar": "^3.5.3",
9090
"debug": "^4.3.4",

pnpm-lock.yaml

Lines changed: 7 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/core/context.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,7 @@ export class Context {
3838
private rawOptions: Options,
3939
) {
4040
this.options = resolveOptions(rawOptions, this.root)
41-
this.generateDeclaration
42-
= throttle(500, false, this._generateDeclaration.bind(this)) as
43-
// `throttle` will omit return value.
44-
((removeUnused?: boolean) => void)
41+
this.generateDeclaration = throttle(500, this._generateDeclaration.bind(this), { noLeading: false })
4542
this.setTransformer(this.options.transformer)
4643
}
4744

0 commit comments

Comments
 (0)