Typescript compiler, how to calm down?

I have this:

db: Storage = new Storage(SqlStorage, {name: ‘sonoramobile’});

And the typescript highlight in sublime states this:

Argument of type ‘typeof SqlStorage’ is not assignable to parameter of type ‘StorageEngine’

I’m still translating my code to typescript so idk if the same error shows in the terminal, how do i fix that?

Got the same issue with my code

And isn’t just in that part, there are a few more related to db management, but this one is the first one in the list.