fitbit-sdk-types
Advanced tools
Comparing version 3.2.5 to 3.2.6
{ | ||
"name": "fitbit-sdk-types", | ||
"version": "3.2.5", | ||
"version": "3.2.6", | ||
"author": "Sergio Morchón Poveda <sergio.morchon@outlook.com>", | ||
@@ -36,8 +36,8 @@ "description": "Types for Fitbit SDK.", | ||
"@types/glob": "^7.1.1", | ||
"@types/node": "^10.12.21", | ||
"@types/node": "^10.12.24", | ||
"dtslint": "^0.4.2", | ||
"prettier": "^1.16.4", | ||
"tslint": "^5.12.1", | ||
"typescript": "^3.3.1" | ||
"typescript": "^3.3.3" | ||
} | ||
} |
@@ -1,10 +0,1 @@ | ||
type ElementState = | ||
| 'enabled' | ||
| 'disabled' | ||
| 'highlighted' | ||
| 'unhighlighted' | ||
| 'selected' | ||
| 'unselected' | ||
| 'expanded' | ||
| string; | ||
interface ElementSearchMap { | ||
@@ -20,11 +11,32 @@ image: ImageElement; | ||
gradientArc: GradientArcElement; | ||
g: GroupElement; | ||
[key: string]: Element; | ||
} | ||
interface ElementSearch { | ||
getElementById(id: string): Element; | ||
getElementById(id: string): Element | null; | ||
getElementsByClassName(className: string): Element[]; | ||
getElementsByTagName( | ||
tagName: keyof ElementSearchMap, | ||
): Array<ElementSearchMap[typeof tagName]>; | ||
getElementsByTagName(tagName: string): Element[]; | ||
getElementsByTagName<TagName extends keyof ElementSearchMap>( | ||
tagName: TagName, | ||
): Array<ElementSearchMap[TagName]>; | ||
} | ||
type AnimationTrigger = | ||
| 'activate' | ||
| 'click' | ||
| 'collapse' | ||
| 'disable' | ||
| 'enable' | ||
| 'expand' | ||
| 'highlight' | ||
| 'load' | ||
| 'mousedown' | ||
| 'mousemove' | ||
| 'mouseout' | ||
| 'mouseover' | ||
| 'mouseup' | ||
| 'paint' | ||
| 'reload' | ||
| 'select' | ||
| 'unhighlight' | ||
| 'unload' | ||
| 'unselect'; | ||
interface Element extends ElementSearch, GlobalEvents { | ||
@@ -39,3 +51,3 @@ readonly class: string; | ||
readonly parent: Element | null; | ||
state: ElementState; | ||
state: string; | ||
text: string; | ||
@@ -45,3 +57,3 @@ readonly type: string; | ||
enabled: boolean; | ||
animate(trigger: string): void; | ||
animate(trigger: AnimationTrigger): void; | ||
sendEvent(event: Event): void; | ||
@@ -48,0 +60,0 @@ } |
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
47797
1523