Skip to content

Conversation

@YoniKiriaty
Copy link
Contributor

No description provided.

@YoniKiriaty YoniKiriaty self-assigned this Feb 5, 2026
@YoniKiriaty YoniKiriaty added enhancement New feature or request new-package A PR to add a new custom package feature A new Feature! labels Feb 5, 2026
dont save the type of the keys they get
*/
const entries: [K, B][] = Object.entries<A>(obj).map(([key, value]) => [
key as K,

Check warning

Code scanning / ESLint

Disallow type assertions that narrow a type Warning

Unsafe type assertion: the original type is assignable to the constraint of type 'K', but 'K' could be instantiated with a different subtype of its constraint.
transformation(value),
]);

return Object.fromEntries(entries) as unknown as Record<K, B>;

Check warning

Code scanning / ESLint

Disallow type assertions that narrow a type Warning

Unsafe type assertion: type 'Record<K, B>' is more narrow than the original type.
@YoniKiriaty YoniKiriaty merged commit 6b7e688 into master Feb 8, 2026
2 checks passed
@YoniKiriaty YoniKiriaty deleted the scouting/feat/team-endpoint branch February 8, 2026 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request feature A new Feature! new-package A PR to add a new custom package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants