Socket
Socket
Sign inDemoInstall

@types/brainhubeu__react-carousel

Package Overview
Dependencies
3
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.3 to 2.0.4

26

brainhubeu__react-carousel/index.d.ts

@@ -9,3 +9,3 @@ // Type definitions for @brainhubeu/react-carousel 2.0

import * as React from "react";
import * as React from 'react';
export type ImgProps = React.ReactComponentElement<'img'>;

@@ -22,8 +22,15 @@

export class Dots extends React.Component<DotsProps> {
}
export class Dots extends React.Component<DotsProps> {}
export type PluginStrategy = (originalValue: number, previousValue: number) => number;
export type CarouselPluginFunc = ({ options, carouselProps, refs }: { options?: any, carouselProps: CarouselProps, refs: Record<string, React.RefObject<HTMLElement>>}) => {
export type CarouselPluginFunc = ({
options,
carouselProps,
refs,
}: {
options?: any;
carouselProps: CarouselProps;
refs: Record<string, React.RefObject<HTMLElement>>;
}) => {
plugin?: (() => void) | undefined;

@@ -45,2 +52,6 @@ beforeCarouselItems?: (() => JSX.Element) | undefined;

export interface CarouselBreakpoints {
[breakpointNumber: number]: Pick<CarouselProps, Exclude<keyof CarouselProps, 'breakpoints'>>;
}
export interface CarouselProps {

@@ -55,8 +66,7 @@ itemWidth?: number | undefined;

className?: string | undefined;
breakpoints?: Pick<CarouselProps, Exclude<keyof CarouselProps, "breakpoints" | "plugins">> | undefined;
plugins?: Array<string|CarouselPluginTypes> | undefined;
breakpoints?: CarouselBreakpoints | undefined;
plugins?: Array<string | CarouselPluginTypes> | undefined;
}
export default class extends React.Component<CarouselProps> {
}
export default class extends React.Component<CarouselProps> {}

@@ -63,0 +73,0 @@ export const slidesToShowPlugin: CarouselPluginFunc;

{
"name": "@types/brainhubeu__react-carousel",
"version": "2.0.3",
"version": "2.0.4",
"description": "TypeScript definitions for @brainhubeu/react-carousel",

@@ -35,4 +35,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/brainhubeu__react-carousel",

},
"typesPublisherContentHash": "ed462a3235d06380b388d1874bdee6d7fd5db80d4d8ceb0786625deb6175ba33",
"typeScriptVersion": "3.6"
"typesPublisherContentHash": "3c37d0e544a0330e879cf6a499619f98cb525da87f21faa9d4a56381f7c4bf02",
"typeScriptVersion": "3.7"
}

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

### Additional Details
* Last updated: Thu, 08 Jul 2021 00:35:38 GMT
* Last updated: Fri, 24 Sep 2021 13:01:20 GMT
* Dependencies: [@types/react](https://npmjs.com/package/@types/react)

@@ -14,0 +14,0 @@ * Global values: none

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc