Are there typescript typings for Dom7 and views?

I’m using TypeScript and Framework7 v6.0.10 in my project.

I’m trying to do the following:

import { Dom7 } from 'framework7';
var $$: Dom7 = Dom7;

However my IDE says there is no Dom7 type, but when I try looking at the framework7 types file there appears to be one?

Same thing for views (e.g. var mainView = app.views.create).

I’ve already tried adding the framework7 types folder to the tsconfig, but no luck.

Any help would be appreciated.

Because Dom7 is not a type, why are you trying to do this, just import it under the name you need:

import { Dom7 as $$ } from 'framework7';
1 Like

I’m using typescript and was trying to avoid just using the :any type on it.

Thanks for the example, it was really helpful! :slightly_smiling_face: