Skip to content

Commit

Permalink
style: remove any
Browse files Browse the repository at this point in the history
  • Loading branch information
privatenumber committed Apr 16, 2024
1 parent 2b165a7 commit 5fcb9cc
Show file tree
Hide file tree
Showing 6 changed files with 1,587 additions and 790 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -419,13 +419,13 @@ type Parsed = {
#### flagSchema
Type:
```ts
type TypeFunction = (argvValue: any) => any
type TypeFunction = (...args: any[]) => unknown

type FlagSchema = {

Check warning on line 424 in README.md

View workflow job for this annotation

GitHub Actions / Test

'FlagSchema' is defined but never used. Allowed unused vars must match /^_/u
[flagName: string]: TypeFunction | [TypeFunction] | {
type: TypeFunction | [TypeFunction]
alias?: string
default?: any
default?: unknown
}
}
```
Expand Down Expand Up @@ -466,7 +466,7 @@ A comma-separated list of flag names to parse.
#### flagType
Type:
```ts
type TypeFunction = (argvValue: any) => any
type TypeFunction = (...args: any[]) => unknown

type FlagType = TypeFunction | [TypeFunction]

Check warning on line 471 in README.md

View workflow job for this annotation

GitHub Actions / Test

'FlagType' is defined but never used. Allowed unused vars must match /^_/u
```
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,18 @@
},
"scripts": {
"build": "pkgroll --minify",
"lint": "eslint --cache .",
"lint": "lint --cache .",
"test": "tsx tests",
"test:dts": "tsd",
"type-check": "tsc --noEmit",
"dev": "tsx watch --conditions=development tests",
"prepack": "pnpm build && clean-pkg-json"
},
"devDependencies": {
"@pvtnbr/eslint-config": "^0.33.0",
"@pvtnbr/eslint-config": "^1.2.1",
"@types/node": "^20.12.7",
"clean-pkg-json": "^1.2.0",
"eslint": "^8.26.0",
"eslint": "^8.57.0",
"manten": "^1.2.0",
"pkgroll": "^2.0.2",
"tsd": "^0.31.0",
Expand Down
Loading

0 comments on commit 5fcb9cc

Please sign in to comment.