Replies: 2 comments 9 replies
-
Hey @CCCullens, Really sorry for the delayed response. I forgot to check the discussion section :( You can either declare lightGallery as described in the StackOverflow answer
Here is the typescript demo - https://stackblitz.com/edit/typescript-ignhuc let me know if you have any questions |
Beta Was this translation helpful? Give feedback.
9 replies
-
Close discussion |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi
I'm not sure what I'm missing since I receive the following error message. How should I work around it?
favoritephotos.ts:374:16 - error TS2339: Property 'lightGallery' does not exist
on type 'Window & typeof globalThis'.
374 window.lightGallery(lgElement, {...
--- ps
Have you considered creating a very short TypeScript example modeled after https://codepen.io/sachinchoolur/pen/VwpYagE (lightgallery dynamic mode demo with images and videos)
I looking for a foo.html and foo.ts sample to get me started with this environment in a type safe way.
For example:
foo.html uses jsdelivr for lightgallery, and includes foo.ts
<script src="https://cdn.jsdelivr.net/npm/lightgallery@2.1.8/lightgallery.min.js" integrity="sha256-isEejtDbO523DeXW0VXW2Me3k0slauzVVwE3Mj6+c4o=" crossorigin="anonymous"></script>
foo.ts has the basic code to create amd open a simple dynamic gallery
Designed for a generic Visual Studio Code with Typescript compiler running.
thanks
CCC
Beta Was this translation helpful? Give feedback.
All reactions