Skip to content
This repository was archived by the owner on Jun 24, 2021. It is now read-only.

Commit d26b382

Browse files
committed
fix definitions
1 parent fee1d0f commit d26b382

File tree

5 files changed

+52
-57
lines changed

5 files changed

+52
-57
lines changed

.gitignore

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
*.js
22
*.js.map
33
*.log
4+
*.d.ts
5+
!index.d.ts
6+
lib
7+
demo/app/*.js
48
demo/*.d.ts
59
demo/platforms
610
demo/node_modules
7-
node_modules
8-
screens/
11+
node_modules

.npmignore

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
# generated files
2-
.vs
1+
.vs
32
.vs/
4-
.sln
3+
.vscode/
54
*.sln
65
demo/
76
screens/
8-
*.png
9-
*.log
7+
*.gitattributes
8+
*.ts
9+
!*.d.ts
10+
tsconfig.json

index.d.ts

+39-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,39 @@
1-
export * from './pulltorefresh'
1+
/**
2+
* Contains the PullToRefresh class, which represents a Layout that contains the UI pattern for pull-to-refresh
3+
*/
4+
5+
import common = require("./pulltorefresh-common");
6+
export declare class PullToRefresh extends common.PullToRefresh {
7+
8+
/**
9+
* String value used when hooking to the onRefresh event.
10+
*/
11+
public static refreshEvent: string;
12+
13+
/**
14+
* Gets the native [android widget](http://developer.android.com/reference/android/support/v4/widget/SwipeRefreshLayout.html) that represents the user interface for this component. Valid only when running on Android OS.
15+
*/
16+
android: any /* android.support.v4.widget.SwipeRefreshLayout */;
17+
18+
/**
19+
* Because of iOS specific this returns the basic UIView. In order to access UIRefreshControl use the refreshControl property!
20+
*/
21+
ios: any
22+
23+
/**
24+
* Returns the native iOS UIRefreshControl
25+
*/
26+
refreshControl: UIRefreshControl
27+
28+
/*
29+
* Gets or sets if the view is refreshing
30+
*/
31+
refreshing: boolean;
32+
33+
/**
34+
* Raised when a refresh event occurs.
35+
*/
36+
on(event: string, callback: (args: observable.EventData) => void, thisArg?: any);
37+
on(event: "refresh", callback: (args: observable.EventData) => void, thisArg?: any);
38+
39+
}

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{
22
"name": "nativescript-pulltorefresh",
3-
"version": "1.1.5",
3+
"version": "1.1.6",
44
"description": "A NativeScript plugin to provide the Pull to Refresh control on any view.",
55
"main": "pulltorefresh.js",
6+
"typings": "index.d.ts",
67
"nativescript": {
78
"platforms": {
89
"android": "1.6.0",

pulltorefresh.d.ts

-48
This file was deleted.

0 commit comments

Comments
 (0)