Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/react-sparklines

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/react-sparklines - npm Package Compare versions

Comparing version 1.7.2 to 1.7.3

30

react-sparklines/index.d.ts

@@ -7,3 +7,3 @@ // Type definitions for react-sparklines 1.7

import * as React from 'react';
import * as React from "react";

@@ -21,9 +21,9 @@ export interface Point {

height?: number | undefined;
svgWidth?: React.SVGAttributes<React.ReactSVGElement>['width'] | undefined;
svgHeight?: React.SVGAttributes<React.ReactSVGElement>['height'] | undefined;
preserveAspectRatio?: React.SVGAttributes<React.ReactSVGElement>['preserveAspectRatio'] | undefined;
svgWidth?: React.SVGAttributes<React.ReactSVGElement>["width"] | undefined;
svgHeight?: React.SVGAttributes<React.ReactSVGElement>["height"] | undefined;
preserveAspectRatio?: React.SVGAttributes<React.ReactSVGElement>["preserveAspectRatio"] | undefined;
margin?: number | undefined;
min?: number | undefined;
max?: number | undefined;
style?: React.SVGAttributes<React.ReactSVGElement>['style'] | undefined;
style?: React.SVGAttributes<React.ReactSVGElement>["style"] | undefined;
}

@@ -35,3 +35,3 @@ export class Sparklines extends React.PureComponent<SparklinesProps> {}

height?: number | undefined;
style?: React.SVGAttributes<React.ReactSVGElement>['style'] | undefined;
style?: React.SVGAttributes<React.ReactSVGElement>["style"] | undefined;
barWidth?: number | undefined;

@@ -44,4 +44,4 @@ margin?: number | undefined;

export interface SparklinesCurveProps {
color?: React.SVGAttributes<React.ReactSVGElement>['color'] | undefined;
style?: React.SVGAttributes<React.ReactSVGElement>['style'] | undefined;
color?: React.SVGAttributes<React.ReactSVGElement>["color"] | undefined;
style?: React.SVGAttributes<React.ReactSVGElement>["style"] | undefined;
}

@@ -51,5 +51,5 @@ export class SparklinesCurve extends React.Component<SparklinesCurveProps> {}

export interface SparklinesLineProps {
color?: React.SVGAttributes<React.ReactSVGElement>['color'] | undefined;
style?: React.SVGAttributes<React.ReactSVGElement>['style'] | undefined;
onMouseMove?: ((event: 'enter' | 'click', value: number, point: Point) => void) | undefined;
color?: React.SVGAttributes<React.ReactSVGElement>["color"] | undefined;
style?: React.SVGAttributes<React.ReactSVGElement>["style"] | undefined;
onMouseMove?: ((event: "enter" | "click", value: number, point: Point) => void) | undefined;
}

@@ -59,3 +59,3 @@ export class SparklinesLine extends React.Component<SparklinesLineProps> {}

export interface SparklinesNormalBandProps {
style?: React.SVGAttributes<React.ReactSVGElement>['style'] | undefined;
style?: React.SVGAttributes<React.ReactSVGElement>["style"] | undefined;
}

@@ -65,5 +65,5 @@ export class SparklinesNormalBand extends React.Component<SparklinesNormalBandProps> {}

export interface SparklinesReferenceLineProps {
type?: 'max' | 'min' | 'mean' | 'avg' | 'median' | 'custom' | undefined;
type?: "max" | "min" | "mean" | "avg" | "median" | "custom" | undefined;
value?: number | undefined;
style?: React.SVGAttributes<React.ReactSVGElement>['style'] | undefined;
style?: React.SVGAttributes<React.ReactSVGElement>["style"] | undefined;
}

@@ -74,3 +74,3 @@ export class SparklinesReferenceLine extends React.Component<SparklinesReferenceLineProps> {}

size?: number | undefined;
style?: React.SVGAttributes<React.ReactSVGElement>['style'] | undefined;
style?: React.SVGAttributes<React.ReactSVGElement>["style"] | undefined;
spotColors?: { [change: string]: string } | undefined;

@@ -77,0 +77,0 @@ }

{
"name": "@types/react-sparklines",
"version": "1.7.2",
"version": "1.7.3",
"description": "TypeScript definitions for react-sparklines",

@@ -25,4 +25,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-sparklines",

},
"typesPublisherContentHash": "e17f69753f191446131ecffb994621cc4bcbba627645dc5771ec7cd5711eda93",
"typeScriptVersion": "3.7"
"typesPublisherContentHash": "0cc02d0376381b703918c7712c68aa07f6084a388754dead81801440d76dfa65",
"typeScriptVersion": "4.5"
}

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

### Additional Details
* Last updated: Thu, 07 Oct 2021 22:31:33 GMT
* Last updated: Wed, 27 Sep 2023 07:12:04 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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc