You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We've recently upgraded from 0.28.25 to 0.29.1 and started having build issues along the lines of
error TS7006: Parameter 'user' implicitly has an 'any' type.
Coming from a function that looks like this (note: a lot of code has been redacted):
export const getUsers = curry(
async (id: string): Promise<User[]> => {
// ...
}
);
// ...
import { getUsers } from '@package/getUsers.js';
// the user param is the one with an implicit any
await getUsers(id)).map(async user => {
As i was looking through the differences, i've noticed that 0.28.25 produces a d.ts which includes a triple slash import
I'm not really sure why0.28.25 would have had that /// <reference types="ts-toolbelt" /> line in there. The second import seems correct, and ts-toolbelt is a direct dependency: https://github.com/ramda/types/blob/develop/package.json#L51. So it should always be there installed and able to be referenced.
I'm not familiar with yarn PnP at all either. But my gut tells me that the issue is with yarn and not types-ramda itself. I've never seen this issue myself in any npm or pnpm backed project
We've recently upgraded from 0.28.25 to 0.29.1 and started having build issues along the lines of
Coming from a function that looks like this (note: a lot of code has been redacted):
As i was looking through the differences, i've noticed that 0.28.25 produces a d.ts which includes a triple slash import
whereas 0.29.1 does not do that and produces something like below
Installing ts-toolbelt in the project resolves build issues.
The text was updated successfully, but these errors were encountered: