Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@types/react-virtualized-select
Advanced tools
TypeScript definitions for react-virtualized-select
npm install --save @types/react-virtualized-select
This package contains type definitions for react-virtualized-select (https://github.com/bvaughn/react-virtualized-select).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-virtualized-select.
import * as React from "react";
import {
LoadOptionsHandler,
OptionValues,
ReactAsyncSelectProps,
ReactCreatableSelectProps,
ReactSelectProps,
} from "react-select";
import { ListProps } from "react-virtualized";
export interface VirtualizedOptionRenderOptions<T> {
focusedOption: T;
focusedOptionIndex: number;
focusOption(option: T): void;
key: string;
labelKey: keyof T;
listProps: ListProps;
option: T;
options: T[];
selectValue(option: T): void;
style: Record<string, string>;
valueArray: T[];
}
export interface AdditionalVirtualizedSelectProps<TValue> {
maxHeight?: number | undefined;
optionHeight?: number | ((options: { option: TValue }) => number) | undefined;
optionRenderer?(options: VirtualizedOptionRenderOptions<TValue>): React.JSX.Element;
selectComponent?: React.ComponentClass<any> | React.FunctionComponent<any> | undefined;
}
type VirtualizedSelectProps<TValue = OptionValues> =
| (ReactCreatableSelectProps<TValue> & ReactAsyncSelectProps<TValue> & AdditionalVirtualizedSelectProps<TValue> & {
async: true;
})
| ReactCreatableSelectProps<TValue> & ReactSelectProps<TValue> & AdditionalVirtualizedSelectProps<TValue>;
declare class VirtualizedSelect<TValue = OptionValues> extends React.PureComponent<VirtualizedSelectProps<TValue>> {}
export default VirtualizedSelect;
These definitions were written by Sean Kelley.
FAQs
TypeScript definitions for react-virtualized-select
We found that @types/react-virtualized-select 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.