typed-typings / npm-ramda

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

Property '__' does not exist on type 'Static'. #401

Closed minaseem closed 6 years ago

minaseem commented 6 years ago

Not able to user placeholder R.__

It is throwing Property '__' does not exist on type 'Static'

ikatyang commented 6 years ago

Hi, it seems you're using types from DefinitelyTyped, see Usage for how to use our types.

minaseem commented 6 years ago

Thanks for the reply. Still I am not able to resolve my issue.

Below is my tsconfig

 "compilerOptions": {
    "moduleResolution": "node",
    "module": "esnext",
    "target": "es6",
    "sourceMap": true,
    "jsx": "react",
    "jsxFactory": "h",
    "baseUrl": ".",
    "paths" : {
      "ramda": [
        "node_modules/@types/ramda/index"
      ]
    }
  }

In code, I am doing something like

import * as R from 'ramda';

const add2 = R.add(R.__, 2);
ikatyang commented 6 years ago

There were some memory issues, I've fixed it in #403. It should work now.

image

minaseem commented 6 years ago

Thanks. When can I expect a patch release?

ikatyang commented 6 years ago

It's already released -> f7dd77a0b93b903be41f1c28de488daa344ff6fb, we automatically deploy to those branches from the travis build.

ikatyang commented 6 years ago

Though we don't change the version number, you probably need to force update or clean cache to avoid accidentally fetching the old version.