Skip to content

Commit

Permalink
fixing TS cypress issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tnrich committed May 15, 2024
1 parent 8f8cda6 commit 07078a1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
import { assign } from "lodash";

export default function provideInclusiveOptions(funToWrap) {
return function () {
const args = Array.prototype.slice.call(arguments);
export default function provideInclusiveOptions(
funToWrap: (...args: any[]) => any
): (...args: any[]) => any {
return function (...args: any[]): any {
const options = args[args.length - 1];
if (
options &&
(options.inclusive1BasedEnd || options.inclusive1BasedStart)
) {
args.forEach(function (arg, index) {
args.forEach(function (arg: any, index: number) {
if (arg && arg.start > -1 && options.inclusive1BasedStart) {
args[index] = assign(arg, { start: arg.start - 1 });
}
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"compileOnSave": false,
"compilerOptions": {
"rootDir": ".",
"sourceMap": true,
// "sourceMap": true,
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
Expand Down

0 comments on commit 07078a1

Please sign in to comment.