typed-typings / npm-ramda

TypeScript's type definitions for Ramda
MIT License
384 stars 64 forks source link

map intended typings #377

Closed FlattestWhite closed 6 years ago

FlattestWhite commented 6 years ago

With R.map typings,

Currently, it seems to be

map<In, Out>(fn: MapFunction<In, Out>, list: ReadonlyArray<Out>): Out[]

Is this the intended typing?

Shouldn't it be map<In, Out>(fn: MapFunction<In, Out>, list: ReadonlyArray<In>): Out[]

Am I missing something here?

ikatyang commented 6 years ago

Hi, it seems you're not using our types, see usage.

https://github.com/types/npm-ramda/blob/e59375898428573ca5d1491e87e3cc02c89cc1d1/templates/map.d.ts#L3