Skip to content

Commit

Permalink
Merge pull request #9 from dutchenkoOleg/master
Browse files Browse the repository at this point in the history
3.3.0
  • Loading branch information
OlehDutchenko authored Feb 19, 2020
2 parents 8256ad3 + 3f26baa commit 61bb956
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
16 changes: 7 additions & 9 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ import { JQuerySlickOptions } from 'web-plugin-abstract-slick-carousel/slick-car
// Public
// ----------------------------------------



export interface JQuerySlickProps {
pauseAutoplayInOutOfView: boolean;
cssReadyClass: string;
Expand All @@ -23,10 +21,10 @@ export interface JQuerySlickProps {
$nextArrowSelector: string;
}

export class AbstractSlickCarousel extends WebPluginInterface {
export class AbstractSlickCarousel<P = JQuerySlickProps, S = JQuerySlickOptions> extends WebPluginInterface {
$container: JQuery;
props: Partial<JQuerySlickProps>;
settings: Partial<JQuerySlickOptions>;
props: Partial<P>;
settings: Partial<S>;
$list: JQuery;
$dots: JQuery;
$prevArrow: JQuery;
Expand All @@ -37,11 +35,11 @@ export class AbstractSlickCarousel extends WebPluginInterface {

constructor(
$container: JQuery,
clientSettings: Partial<JQuerySlickOptions> = {},
clientProps: Partial<JQuerySlickProps> = {}
clientSettings: Partial<S> = {},
clientProps: Partial<P> = {}
);
get defaultProps(): Partial<JQuerySlickProps>;
get defaultSettings(): Partial<JQuerySlickOptions>;
get defaultProps(): Partial<P>;
get defaultSettings(): Partial<S>;
protected _setup(): void;
protected _beforeInitialize(): void;
protected _afterInitialize(): void;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "web-plugin-abstract-slick-carousel",
"version": "3.2.0",
"version": "3.3.0",
"description": "",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 61bb956

Please sign in to comment.