Skip to content

Commit

Permalink
Meta tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Nov 8, 2023
1 parent 996171b commit 86ddc1a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ jobs:
- 18
- 16
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm install
Expand All @@ -31,8 +31,8 @@ jobs:
- "~5.2.0"
- "~5.1.0"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- run: npm install
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"url": "https://sindresorhus.com"
},
"types": "./index.d.ts",
"sideEffects": false,
"engines": {
"node": ">=16"
},
Expand Down
2 changes: 1 addition & 1 deletion source/paths.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export type InternalPaths<_T extends UnknownRecord | UnknownArray, T = Required<
? T[Key] extends UnknownRecord | UnknownArray
? (
IsNever<Paths<T[Key]>> extends false
// If `Key` is a number, return `Key | `${Key}``, because both `array[0]` and `array['0']` do not work.
// If `Key` is a number, return `Key | `${Key}``, because both `array[0]` and `array['0']` work.
? Key | ToString<Key> | `${Key}.${Paths<T[Key]>}`
: Key | ToString<Key>
)
Expand Down

0 comments on commit 86ddc1a

Please sign in to comment.