Skip to content

Commit

Permalink
chore: migrate to TSTyche
Browse files Browse the repository at this point in the history
  • Loading branch information
mrazauskas committed Feb 29, 2024
1 parent fc17340 commit c36e2eb
Show file tree
Hide file tree
Showing 6 changed files with 911 additions and 957 deletions.
2 changes: 2 additions & 0 deletions .prettierignore
Expand Up @@ -12,3 +12,5 @@ type-definitions/flow-tests/
!type-definitions/ts-tests/from-js.ts
!type-definitions/ts-tests/functional.ts
!type-definitions/ts-tests/groupBy.ts
!type-definitions/ts-tests/list.ts
!type-definitions/ts-tests/map.ts
4 changes: 3 additions & 1 deletion tstyche.config.json
Expand Up @@ -8,6 +8,8 @@
"**/type-definitions/ts-tests/exports.ts",
"**/type-definitions/ts-tests/from-js.ts",
"**/type-definitions/ts-tests/functional.ts",
"**/type-definitions/ts-tests/groupBy.ts"
"**/type-definitions/ts-tests/groupBy.ts",
"**/type-definitions/ts-tests/list.ts",
"**/type-definitions/ts-tests/map.ts"
]
}
4 changes: 3 additions & 1 deletion type-definitions/immutable.d.ts
Expand Up @@ -855,7 +855,9 @@ declare namespace Immutable {
get<K extends keyof R>(key: K, notSetValue?: unknown): R[K];
get<NSV>(key: any, notSetValue: NSV): NSV;

// https://github.com/microsoft/TypeScript/pull/39094
// TODO `<const P extends ...>` can be used after dropping support for TypeScript 4.x
// reference: https://www.typescriptlang.org/docs/handbook/release-notes/typescript-5-0.html#const-type-parameters
// after this change, `as const` assertions can be remove from the type tests
getIn<P extends ReadonlyArray<string | number | symbol>>(
searchKeyPath: [...P],
notSetValue?: unknown
Expand Down

0 comments on commit c36e2eb

Please sign in to comment.