Skip to content

Commit 15a1f59

Browse files
committed
style: add type for better understanding
1 parent 3e5bb4c commit 15a1f59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sources/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Win.Function.prototype.toString = new Proxy(Win.Function.prototype.toString, {
2222
Win.Function.prototype.apply = new Proxy(Win.Function.prototype.apply, {
2323
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
2424
apply(Target: typeof Function.prototype.apply, ThisArg: Function, Args: unknown[]) {
25-
if (OrignalFunctionToString.call(ThisArg).includes(',inventoryId:')) {
25+
if ((OrignalFunctionToString.call(ThisArg) as string).includes(',inventoryId:')) {
2626
throw new Error()
2727
}
2828

0 commit comments

Comments
 (0)