reactjs


How to ignore .d.ts file inside npm package?


I'm using react-custom-scrollbars, the index.d.ts file inside package doesn't works for me, while #types/react-custom-scrollbars works well.
as this issue mentioned.
https://github.com/malte-wessel/react-custom-scrollbars/issues/133
My problem is, before this package makes any change, can I use #types/react-custom-scrollbars instead of index.d.ts inside this package?
I try to add explicit reference path
/// <reference path="../../../../../../node_modules/#types/react-custom-scrollbars/index.d.ts" />
In Visual Studio Code, it compiles. But when running, error still:
ERROR in /Users/alen/Workspace/Qunhe/core/node_modules/react-custom-scrollbars/index.d.ts
(3,20): error TS2304: Cannot find name '__React'.
Btw, I'm using webpack 2.

Related Links

Removing sub component from React component?
React/Typescript : extending a component with additional properties
Can't get the target attributes of material-ui select react component
How to use globally installed node modules packages for multiple projects?
You may need an appropriate loader to handle this file type.eith react.js,webpack,babel
Location_Change action dispatched multiple times when navigating back using react redux router, immutablejs, and devtools
Update sibling component on mutation?
React reroute on ajax call
Webpack Dev Server with React Hot Loader
Change tab content using router
child of the component “this” value and how do I get to parent component?
Initial state Redux store - invalid prop
Mutating outer variables inside React Component
How to return existing reactElement from render
Can a Redux store lead to a memory leak?
Uncaught TypeError: Cannot read property 'showModal' of null

Categories

HOME
oauth-2.0
kendo-ui-angular2
wifi
mifare
lithium
overrides
snmp
localhost
sdk
multipartform-data
autocad
procmon
schema
cdn
suitecrm
osrm
guidewire
http-status-codes
drush
mbed
greensock
ringcentral
google-calendar-api3
xforms
android-wear-2.0
ckeditor4.x
my.cnf
pydub
orgchart
mex
jms-topic
hierarchy
ds-5
azure-vm-scale-set
repeat
lighting
nscollectionview
compiled-query
aura-framework
uitextview
result
html-entities
qtwebkit
noise
extjs3
opticalflow
blackberry
was
git-push
x12
syslog4j
qtruby
falcon
patching
gdi
audiorecord
imageicon
updating
tess4j
photogrammetry
avd
bungeecord
dojox.grid
uiblureffect
apache-pivot
sat4j
switchpreference
nspopupbutton
android-relativelayout
rssi
jfilechooser
cab
nsnumber
kademlia
latex-suite
screensharing
custom-cursor
databus
diazo
stl-algorithm
ruby-1.9
copyfile
clgeocoder
httppostedfilebase
parallel-python
jexcelapi
azure-appfabric
simultaneous
script-tag

Resources

Encrypt Message