Socket
Socket
Sign inDemoInstall

@types/react-slick

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/react-slick - npm Package Compare versions

Comparing version 0.0.8 to 0.14.0

react-slick/LICENSE

112

react-slick/index.d.ts

@@ -1,55 +0,75 @@

// Type definitions for react-slick
// Type definitions for react-slick 0.14
// Project: https://github.com/akiran/react-slick
// Definitions by: Andrey Balokha <https://github.com/andrewBalekha>
// Definitions by: Andrey Balokha <https://github.com/andrewBalekha>, Giedrius Grabauskas <https://github.com/GiedriusGrabauskas>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.1
/// <reference types="react"/>
import * as React from "react";
interface __config {
accessibility?: boolean
nextArrow?: HTMLElement | any
prevArrow?: HTMLElement | any
pauseOnHover?: boolean
className?: string
adaptiveHeight?: boolean
arrows?: boolean
autoplay?: boolean
autoplaySpeed?: number // integer
centerMode?: boolean
centerPadding?: string | any
cssEase?: string | any
dots?: boolean
dotsClass?: string
draggable?: boolean
easing?: string
fade?: boolean
focusOnSelect?: boolean
infinite?: boolean // should the gallery wrap around it's contents
initialSlide?: number // int
lazyLoad?: boolean
rtl?: boolean
slide?: string
slidesToShow?: number // int
slidesToScroll?: number // int
speed?: number //int
swipe?: boolean
swipeToSlide?: boolean
touchMove?: boolean
touchThreshold?: number // int
variableWidth?: boolean
useCSS?: boolean
vertical?: boolean
afterChange?: ((currentSlide: number) => void)
beforeChange?: ((currentSlide: number, nextSlide: number) => void)
slickGoTo?: number // int
type ComponentConstructor<TProps> = React.ComponentClass<TProps> | React.StatelessComponent<TProps>;
export interface CustomArrowProps {
className?: string;
style?: React.CSSProperties;
onClick?: React.MouseEventHandler<any>;
}
interface Slider extends __config {
responsive?: { breakpoint: number; settings: __config}[]
export interface ResponsiveObject {
breakpoint: number;
settings: "unslick" | Settings;
}
declare module "react-slick" {
var Slider: React.ClassicComponentClass<Slider>;
export = Slider;
export type SwipeDirection = "left" | "down" | "right" | "up" | string;
export interface Settings {
accessibility?: boolean;
className?: string;
adaptiveHeight?: boolean;
arrows?: boolean;
nextArrow?: JSX.Element;
prevArrow?: JSX.Element;
autoplay?: boolean;
autoplaySpeed?: number;
centerMode?: boolean;
centerPadding?: string;
cssEase?: string;
customPaging?(index: number): JSX.Element;
dots?: boolean;
dotsClass?: string;
draggable?: boolean;
easing?: string;
fade?: boolean;
focusOnSelect?: boolean;
infinite?: boolean;
initialSlide?: number;
lazyLoad?: boolean;
pauseOnHover?: boolean;
responsive?: ResponsiveObject[];
rtl?: boolean;
slide?: string;
slidesToShow?: number;
slidesToScroll?: number;
speed?: number;
swipe?: boolean;
swipeToSlide?: boolean;
touchMove?: boolean;
touchThreshold?: number;
variableWidth?: boolean;
useCSS?: boolean;
vertical?: boolean;
afterChange?(currentSlide: number): void;
beforeChange?(currentSlide: number, nextSlide: number): void;
slickGoTo?: number;
edgeFriction?: number;
waitForAnimate?: boolean;
edgeEvent?(swipeDirection: SwipeDirection): void;
swipeEvent?(swipeDirection: SwipeDirection): void;
init?(): void;
}
declare class Slider extends React.Component<Settings, never> {
slickNext(): void;
slickPrev(): void;
slickGoTo(slideNumber: number): void;
}
export default Slider;
{
"name": "@types/react-slick",
"version": "0.0.8",
"version": "0.14.0",
"description": "TypeScript definitions for react-slick",

@@ -10,2 +10,6 @@ "license": "MIT",

"url": "https://github.com/andrewBalekha"
},
{
"name": "Giedrius Grabauskas",
"url": "https://github.com/GiedriusGrabauskas"
}

@@ -23,4 +27,4 @@ ],

"peerDependencies": {},
"typesPublisherContentHash": "d4ceb06499b6ac06082104e8bead088a91b22b6eb658afa5c31e7f960d6b9afc",
"typeScriptVersion": "2.1"
"typesPublisherContentHash": "012b6ba0144ba077f8edec2cb21b63a343734fde0767f5cf3f66e5829bb4ad76",
"typeScriptVersion": "2.0"
}

@@ -11,3 +11,3 @@ # Installation

Additional Details
* Last updated: Mon, 10 Apr 2017 21:37:22 GMT
* Last updated: Fri, 02 Jun 2017 13:38:50 GMT
* Dependencies: react

@@ -17,2 +17,2 @@ * Global values: none

# Credits
These definitions were written by Andrey Balokha <https://github.com/andrewBalekha>.
These definitions were written by Andrey Balokha <https://github.com/andrewBalekha>, Giedrius Grabauskas <https://github.com/GiedriusGrabauskas>.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc