I am using Typescript 2.1. I am trying to install an npm package that doesn't have typings (reactable
).
If I do:
import * as Reactable from 'reactable'
typescript complains that cannot find this module.
If I do:
const Reactable = require('reactable')
typescript complains that require
is forbidden.
If I do the weird syntax that suggested in another post:
import Reactable = require('reactable');
typescript complains that import
assignment cannot be used to target es2015 modules.
Is there any way to import npm packages that do not have typings?