
Research
Security News
The Growing Risk of Malicious Browser Extensions
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
@types/react-resizable
Advanced tools
npm install --save @types/react-resizable
This package contains type definitions for react-resizable (https://github.com/STRML/react-resizable).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-resizable.
// Type definitions for react-resizable 3.0
// Project: https://github.com/STRML/react-resizable
// Definitions by: Harry Brrundage <https://github.com/airhorns>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
import * as React from "react";
export type Axis = "both" | "x" | "y" | "none";
export type ResizeHandle = 's' | 'w' | 'e' | 'n' | 'sw' | 'nw' | 'se' | 'ne';
export interface ResizableState {
resizing: boolean;
width: number;
height: number;
slackW: number;
slackH: number;
}
export interface DragCallbackData {
node: HTMLElement;
x: number;
y: number;
deltaX: number;
deltaY: number;
lastX: number;
lastY: number;
}
export interface ResizeCallbackData {
node: HTMLElement;
size: { width: number; height: number };
handle: ResizeHandle;
}
export interface ResizableProps {
children?: React.ReactNode;
className?: string | undefined;
width: number;
height: number;
handle?: React.ReactNode | ((resizeHandle: ResizeHandle, ref: React.RefObject<any>) => React.ReactNode) | undefined;
handleSize?: [number, number] | undefined;
lockAspectRatio?: boolean | undefined;
axis?: Axis | undefined;
minConstraints?: [number, number] | undefined;
maxConstraints?: [number, number] | undefined;
onResizeStop?: ((e: React.SyntheticEvent, data: ResizeCallbackData) => any) | undefined;
onResizeStart?: ((e: React.SyntheticEvent, data: ResizeCallbackData) => any) | undefined;
onResize?: ((e: React.SyntheticEvent, data: ResizeCallbackData) => any) | undefined;
draggableOpts?: any;
resizeHandles?: ResizeHandle[] | undefined;
}
export class Resizable extends React.Component<
ResizableProps,
ResizableState
> { }
export interface ResizableBoxState {
height: number;
width: number;
}
export type ResizableBoxProps = ResizableProps;
export class ResizableBox extends React.Component<
ResizableBoxProps,
ResizableBoxState
> { }
These definitions were written by Harry Brrundage.
FAQs
TypeScript definitions for react-resizable
The npm package @types/react-resizable receives a total of 329,753 weekly downloads. As such, @types/react-resizable popularity was classified as popular.
We found that @types/react-resizable demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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 how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.