Skip to content

Commit

Permalink
feat(core): add ParallaxOptions types
Browse files Browse the repository at this point in the history
fixes #4684
  • Loading branch information
nolimits4web committed Jun 21, 2021
1 parent 0d578b0 commit 7cc22fe
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
9 changes: 9 additions & 0 deletions src/types/components/parallax.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
export interface ParallaxMethods {}

export interface ParallaxEvents {}

export interface ParallaxOptions {
/**
* Enable, if you want to use "parallaxed" elements inside of slider
*
* @default false
*/
enabled?: boolean;
}
11 changes: 6 additions & 5 deletions src/types/swiper-options.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { LazyOptions } from './components/lazy';
import { MousewheelOptions } from './components/mousewheel';
import { NavigationOptions } from './components/navigation';
import { PaginationOptions } from './components/pagination';
import { ParallaxOptions } from './components/parallax';
import { ScrollbarOptions } from './components/scrollbar';
import { ThumbsOptions } from './components/thumbs';
import { VirtualOptions } from './components/virtual';
Expand Down Expand Up @@ -1089,7 +1090,7 @@ export interface SwiperOptions {
mousewheel?: MousewheelOptions | boolean;

/**
* Object with navigation parameters
* Object with navigation parameters or boolean `true` to enable with default settings.
*
* @example
* ```js
Expand All @@ -1104,7 +1105,7 @@ export interface SwiperOptions {
navigation?: NavigationOptions | boolean;

/**
* Object with pagination parameters
* Object with pagination parameters or boolean `true` to enable with default settings.
*
* @example
* ```js
Expand All @@ -1119,12 +1120,12 @@ export interface SwiperOptions {
pagination?: PaginationOptions | boolean;

/**
* Enable, if you want to use "parallaxed" elements inside of slider
* Object with parallax parameters or boolean `true` to enable with default settings.
*/
parallax?: boolean;
parallax?: ParallaxOptions | boolean;

/**
* Object with scrollbar parameters
* Object with scrollbar parameters or boolean `true` to enable with default settings.
*
* @example
* ```js
Expand Down

0 comments on commit 7cc22fe

Please sign in to comment.