@types/chart.js
Advanced tools
Comparing version 2.9.20 to 2.9.21
@@ -160,3 +160,16 @@ // Type definitions for Chart.js 2.9 | ||
type InteractionMode = 'point' | 'nearest' | 'single' | 'label' | 'index' | 'x-axis' | 'dataset' | 'x' | 'y'; | ||
// Allow extending the IteractionMode type alias | ||
// see https://github.com/microsoft/TypeScript/issues/28078#issuecomment-432339564 | ||
interface InteractionModeRegistry { | ||
'point': 'point'; | ||
'nearest': 'nearest'; | ||
'single': 'single'; | ||
'label': 'label'; | ||
'index': 'index'; | ||
'x-axis': 'x-axis'; | ||
'dataset': 'dataset'; | ||
'x': 'x'; | ||
'y': 'y'; | ||
} | ||
type InteractionMode = InteractionModeRegistry[keyof InteractionModeRegistry]; | ||
@@ -163,0 +176,0 @@ type Easing = 'linear' | 'easeInQuad' | 'easeOutQuad' | 'easeInOutQuad' | 'easeInCubic' | 'easeOutCubic' | 'easeInOutCubic' | |
{ | ||
"name": "@types/chart.js", | ||
"version": "2.9.20", | ||
"version": "2.9.21", | ||
"description": "TypeScript definitions for Chart.js", | ||
@@ -149,4 +149,4 @@ "license": "MIT", | ||
}, | ||
"typesPublisherContentHash": "58ed72045c9d854f079e995d503adcbac6f94d31435dec8e8c17001381c223c9", | ||
"typeScriptVersion": "2.8" | ||
"typesPublisherContentHash": "88eac2e33e56cf1dc5f83cf2c38c5ed54ee486c43a92d83a81c22c4e7f38d557", | ||
"typeScriptVersion": "3.0" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Tue, 28 Apr 2020 07:10:54 GMT | ||
* Last updated: Tue, 19 May 2020 18:08:41 GMT | ||
* Dependencies: [@types/moment](https://npmjs.com/package/@types/moment) | ||
@@ -14,0 +14,0 @@ * Global values: `Chart` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
37828
792