Skip to content

Commit

Permalink
chore: turn on noImplicitThis (#1842)
Browse files Browse the repository at this point in the history
  • Loading branch information
ST-DDT committed Feb 20, 2023
1 parent be5bd5c commit 0eba320
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/modules/helpers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -915,7 +915,7 @@ export class HelpersModule {
) => RecordKey
>(
method: Method,
args?: Parameters<Method>,
args: Parameters<Method> = [] as Parameters<Method>,
options: {
/**
* This parameter does nothing.
Expand Down
2 changes: 1 addition & 1 deletion src/modules/helpers/unique.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export function exec<
}

// Execute the provided method to find a potential satisfied value.
const result: ReturnType<Method> = method.apply(this, args);
const result: ReturnType<Method> = method(...args) as ReturnType<Method>;

// If the result has not been previously found, add it to the found array and return the value as it's unique.
if (compare(store, result) === -1 && exclude.indexOf(result) === -1) {
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"alwaysStrict": true,
"strictFunctionTypes": true,
"noImplicitAny": true,
"noImplicitThis": true,
"useUnknownInCatchVariables": true,
"stripInternal": true,
"baseUrl": "."
Expand Down

0 comments on commit 0eba320

Please sign in to comment.