
Product
Secure Your AI-Generated Code with Socket MCP
Socket MCP brings real-time security checks to AI-generated code, helping developers catch risky dependencies before they enter the codebase.
@types/react-swipeable-views-utils
Advanced tools
TypeScript definitions for react-swipeable-views-utils
npm install --save @types/react-swipeable-views-utils
This package contains type definitions for react-swipeable-views-utils (https://github.com/oliviertassinari/react-swipeable-views#react-swipeable-views).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-swipeable-views-utils.
import { PropInjector } from "@material-ui/types";
import * as React from "react";
import { OnChangeIndexCallback, OnSwitchingCallback, OnTransitionEndCallback } from "react-swipeable-views";
export interface WithIndex {
index?: number;
onChangeIndex?: OnChangeIndexCallback;
}
export interface WithAutoPlay extends WithIndex {
onSwitching?: OnSwitchingCallback | undefined;
}
export interface WithAutoPlayProps extends WithIndex {
autoplay?: boolean | undefined;
direction?: "incremental" | "decremental" | undefined;
interval?: number | undefined;
slideCount?: number | undefined;
}
export interface WithVirtualize extends WithIndex {
slideRenderer: (render: SlideRendererCallback) => React.ReactNode;
}
export interface WithVirtualizeProps extends WithIndex {
onTransitionEnd?: OnTransitionEndCallback | undefined;
overscanSlideAfter?: number | undefined;
overscanSlideBefore?: number | undefined;
slideCount?: number | undefined;
children?: React.ReactNode | undefined;
slideRenderer: SlideRendererCallback;
}
export interface SlideRenderProps {
index: number;
key: number;
}
export type WithBindKeyboard = WithIndex;
export interface WithBindKeyboardProps extends WithIndex {
axis?: "x" | "x-reverse" | "y" | "y-reverse" | undefined;
slidecount?: number | undefined;
}
export const autoPlay: PropInjector<WithAutoPlay, WithAutoPlayProps>;
export type SlideRendererCallback = (render: SlideRenderProps) => React.ReactNode;
export const virtualize: PropInjector<WithVirtualize, WithVirtualizeProps>;
export const bindKeyboard: PropInjector<WithBindKeyboard, WithBindKeyboardProps>;
These definitions were written by Sebastian Silbermann, and Robert Nisipeanu.
FAQs
TypeScript definitions for react-swipeable-views-utils
The npm package @types/react-swipeable-views-utils receives a total of 23,861 weekly downloads. As such, @types/react-swipeable-views-utils popularity was classified as popular.
We found that @types/react-swipeable-views-utils demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket MCP brings real-time security checks to AI-generated code, helping developers catch risky dependencies before they enter the codebase.
Security News
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
Research
Security News
Socket’s Threat Research Team has uncovered 60 npm packages using post-install scripts to silently exfiltrate hostnames, IP addresses, DNS servers, and user directories to a Discord-controlled endpoint.