Skip to content

Commit

Permalink
fix: set property initializer
Browse files Browse the repository at this point in the history
  • Loading branch information
biati-digital committed Mar 30, 2024
1 parent c9ec9c1 commit b67162d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions .changeset/twenty-pants-bow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@glightbox/drag-navigation": patch
"@glightbox/image": patch
"@glightbox/video": patch
---

set property initializer
2 changes: 1 addition & 1 deletion packages/drag-navigation/src/drag.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export interface DragOptions extends PluginOptions {
export default class DragNavigation extends GLightboxPlugin {
name = 'drag';
type: PluginType = 'other';
options: DragOptions;
options: DragOptions = {};
isDown: boolean = false;
slider: HTMLElement | null = null;
actveSlide: HTMLElement | null = null;
Expand Down
2 changes: 1 addition & 1 deletion packages/image/src/image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export interface ImageOptions extends PluginOptions {
export default class ImageSlide extends GLightboxPlugin {
name = 'image';
type: PluginType = 'slide';
options?: ImageOptions;
options: ImageOptions = {};
defaults: ImageOptions = {
maxWidth: '100vw'
};
Expand Down
2 changes: 1 addition & 1 deletion packages/video/src/video.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export interface VideoPlayer {
export default class VideoSlide extends GLightboxPlugin {
name = 'video';
type: PluginType = 'slide';
options?: VideoOptions;
options: VideoOptions = {};
players = new Map<string, unknown>();
playerAssets: PluginAssets;
defaults: VideoOptions = {
Expand Down

0 comments on commit b67162d

Please sign in to comment.