@types/pulltorefreshjs
Advanced tools
Comparing version 0.1.1 to 0.1.2
// Type definitions for pulltorefreshjs 0.1 | ||
// Project: https://github.com/BoxFactura/pulltorefresh.js | ||
// Definitions by: Daniel Rosenwasser <https://github.com/DanielRosenwasser> | ||
// Tamas Kinsztler <https://github.com/humpedli> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -8,2 +9,6 @@ | ||
export function destroyAll(): void; | ||
export function setPassiveMode(isPassive: boolean): void; | ||
export interface Options { | ||
@@ -112,2 +117,17 @@ /** | ||
resistanceFunction?(input: number): number; | ||
/** | ||
* Which condition should be met for pullToRefresh to trigger? | ||
* | ||
* Defaults to `!window.scrollY` | ||
*/ | ||
shouldPullToRefresh?(): boolean; | ||
/** | ||
* This value will be passed as `{ passive: true|false }` to `touchmove` | ||
* listeners if passive-handlers are supported. | ||
* | ||
* Defaults to `false` | ||
*/ | ||
passive?: boolean; | ||
} | ||
@@ -114,0 +134,0 @@ |
{ | ||
"name": "@types/pulltorefreshjs", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "TypeScript definitions for pulltorefreshjs", | ||
@@ -9,3 +9,9 @@ "license": "MIT", | ||
"name": "Daniel Rosenwasser", | ||
"url": "https://github.com/DanielRosenwasser" | ||
"url": "https://github.com/DanielRosenwasser", | ||
"githubUsername": "DanielRosenwasser" | ||
}, | ||
{ | ||
"name": "Tamas Kinsztler", | ||
"url": "https://github.com/humpedli", | ||
"githubUsername": "humpedli" | ||
} | ||
@@ -20,5 +26,4 @@ ], | ||
"dependencies": {}, | ||
"peerDependencies": {}, | ||
"typesPublisherContentHash": "181eeea2d6e0f40de96ee734d5dd4cfbe191a33012064f525e6e4604c38a62b4", | ||
"typesPublisherContentHash": "fe0baeab477c761245edb0dc3c324915b573d56dc06efd21864397d78581d636", | ||
"typeScriptVersion": "2.0" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Fri, 31 Mar 2017 18:05:15 GMT | ||
* Last updated: Tue, 13 Feb 2018 20:54:40 GMT | ||
* Dependencies: none | ||
@@ -17,2 +17,2 @@ * Global values: PullToRefresh | ||
# Credits | ||
These definitions were written by Daniel Rosenwasser <https://github.com/DanielRosenwasser>. | ||
These definitions were written by Daniel Rosenwasser <https://github.com/DanielRosenwasser>, Tamas Kinsztler <https://github.com/humpedli>. |
5891
4
113