Support `import map from "ramda/es/map";`
Closed this issue · 0 comments
rafaelcichocki commented
Setup:
vscode: 1.24.1
ramda: 0.25.0
@types/ramda: github:types/npm-ramda#dist
Problem: ramda es modules not supported.
import map from "ramda/es/map";
Could not find a declaration file for module 'ramda/es/pipe'. 'C:/path/node_modules/ramda/es/pipe.js' implicitly has an 'any' type.
Try `npm install @types/ramda` if it exists or add a new declaration (.d.ts) file containing `declare module 'ramda';`
OK: import pipe = require("ramda/src/pipe");
Proposed solution:
./node_modules/@types/ramda/es/map.d.ts
import map = require("../src/map");
export default map;
I've manually added these files, and vscode is happy.
Does this solution seem acceptable for the #dist
branch?