Open okerx opened 2 years ago
+1.
There is a workaround I used to make it work in TS.
"allowJs": true
into tsconfig.json
photoswipe-dynamic-caption-plugin.d.ts
:
declare module 'photoswipe-dynamic-caption-plugin';
photoswipe.d.ts
:
declare module 'photoswipe';
declare module 'photoswipe/lightbox';Also don't forget to include css.
The package has no corresponding Typescript declarations, therefore it cannot be used in a TS project.