I try to load this module in my typescript add.
First I added the npm package and the module has been installed correctly in my node_modules
folder as simpl-schema
.
Since there are no typings for this package I added this line:
declare var SimpleSchema: any;
I tried to import the package with import * as SimpleSchema from 'simpl-schema';
and got the message Cannot find module 'simpl-schema'
. I think a got this since simpl-schema
doesn't contain type information but I'm not sure.
I found tons of questions regarding this topic here, on reddit and other forums with a lot of suggestions which doesn't work for my setup. So I'm wondering whats the right way to this.