
Security News
Django Joins curl in Pushing Back on AI Slop Security Reports
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
@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 26,241 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.
Security News
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.