Skip to content

Commit

Permalink
fix: compile errors
Browse files Browse the repository at this point in the history
  • Loading branch information
snorrees committed Sep 2, 2022
1 parent c36a072 commit 32b4546
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@
"test": "jest --coverage",
"test:watch": "jest --coverage --watch",
"test:prod": "npm run lint && npm run test -- --no-cache",
"prepublishOnly": "npm run build",
"prepare": "husky install"
"prepublishOnly": "npm run compile && npm run build",
"prepare": "husky install",
"compile": "tsc --noEmit"
},
"prettier": {
"semi": false,
Expand Down Expand Up @@ -92,4 +93,4 @@
"tsconfig-paths-jest": "0.0.1",
"typescript": "^4.0.3"
}
}
}
2 changes: 1 addition & 1 deletion src/http/utils/createAbortController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import AbortControllerPolyfill from 'abort-controller'

export const createAbortController = (): AbortController => {
if (!('AbortController' in window)) {
return new AbortControllerPolyfill()
return new AbortControllerPolyfill() as AbortController
}
return new AbortController()
}
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"module": "es2015",
"lib": ["es2015", "es2016", "es2017", "dom"],
"strict": true,
"skipLibCheck": true,
"sourceMap": true,
"declaration": true,
"allowSyntheticDefaultImports": true,
Expand Down Expand Up @@ -38,4 +39,4 @@
}
},
"include": ["src/**/*"]
}
}

0 comments on commit 32b4546

Please sign in to comment.