Skip to content

Commit

Permalink
fix(index.d.ts): mark some params as optional
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasvn committed Aug 31, 2024
1 parent b71340f commit 039e1b3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Type definitions for Glightbox 3.2.0
// Type definitions for Glightbox 3.2.1
// Project: https://github.com/biati-digital/glightbox/blob/master/README.md
// Definitions by: Ngoc Tu Nguyen <https://github.com/tomasvn>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
Expand Down Expand Up @@ -340,7 +340,7 @@ declare class GlightboxInit {
/**
* Open lightbox
*/
open(element: Element, startAt: number): void
open(element?: Element, startAt?: number): void

/**
* Open at specific index
Expand All @@ -350,7 +350,7 @@ declare class GlightboxInit {
/**
* Set Slide
*/
private showSlide(index: number, first: boolean): void;
private showSlide(index?: number, first?: boolean): void;

/**
* Preload slides
Expand Down Expand Up @@ -378,12 +378,12 @@ declare class GlightboxInit {
/**
* Insert slide
*/
insertSlide(config: Record<any, any>, index: number): void;
insertSlide(config?: Record<any, any>, index?: number): void;

/**
* Remove slide
*/
removeSlide(index: number): boolean | undefined;
removeSlide(index?: number): boolean | undefined;

/**
* Slide In
Expand Down Expand Up @@ -428,7 +428,7 @@ declare class GlightboxInit {
* Play video at specified
* node or index
*/
playSlideVideo(slide: Element): void;
playSlideVideo(slide: Element | number): void;

/**
* Play media player at specified
Expand Down

0 comments on commit 039e1b3

Please sign in to comment.