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