Skip to content

Commit 7f6c4e0

Browse files
committed
fix: unconstruct parameter typo
1 parent c580724 commit 7f6c4e0

File tree

8 files changed

+12
-12
lines changed

8 files changed

+12
-12
lines changed

dist/purify.cjs.js

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

dist/purify.cjs.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/purify.es.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,12 @@ function unapply(func) {
7979
* @param func - The constructor function to be wrapped and called.
8080
* @returns A new function that constructs an instance of the given constructor function with the provided arguments.
8181
*/
82-
function unconstruct(func) {
82+
function unconstruct(Func) {
8383
return function () {
8484
for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
8585
args[_key4] = arguments[_key4];
8686
}
87-
return construct(func, args);
87+
return construct(Func, args);
8888
};
8989
}
9090
/**

dist/purify.es.mjs.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/purify.js

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

dist/purify.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/purify.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ function unapply<T>(
8383
* @returns A new function that constructs an instance of the given constructor function with the provided arguments.
8484
*/
8585
function unconstruct<T>(
86-
func: new (...args: any[]) => T
86+
Func: new (...args: any[]) => T
8787
): (...args: any[]) => T {
88-
return (...args: any[]): T => construct(func, args);
88+
return (...args: any[]): T => construct(Func, args);
8989
}
9090

9191
/**

0 commit comments

Comments
 (0)