open lightbox in backend
function openLightbox(name: string, [data: Object]): Promise
Here is what the above code is Doing:
1. It’s defining a function called openLightbox.
2. It’s defining the function’s parameters.
3. It’s defining the function’s return type.