Skip to content

Commit

Permalink
Bump prettier and better defaults for tsconfig, remove dead type
Browse files Browse the repository at this point in the history
  • Loading branch information
skooch committed Oct 18, 2023
1 parent 957e380 commit 5b62f57
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
9 changes: 8 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"devDependencies": {
"@babel/preset-env": "^7.23.2",
"@babel/preset-typescript": "^7.23.2",
"@tsconfig/recommended": "^1.0.3",
"@types/eslint": "^8.44.5",
"@types/node": "^20.8.6",
"@types/node-fetch": "^2.6.6",
Expand All @@ -47,7 +48,7 @@
"husky": "^8.0.1",
"jest": "^29.0.1",
"jsdoc": "^4.0.0",
"prettier": "^2.0.5",
"prettier": "^2.8.8",
"typescript": "^5.2.2"
},
"dependencies": {
Expand Down
8 changes: 0 additions & 8 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,6 @@ export interface ApiEndpoint {

export type HttpMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS'

export type RecursiveRecord =
| string
| boolean
| number
| symbol
| { [key: string]: RecursiveRecord }
| undefined

export type UserConfiguration = { baseUrl: string; apiKey: string }

export type ApiParameterOptions = {
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"extends": "@tsconfig/recommended/tsconfig.json",
"compilerOptions": {
"outDir": "./dist",
"declaration": true,
"composite": true,
"strict": true,
"types": [
"node"
Expand Down

0 comments on commit 5b62f57

Please sign in to comment.