Skip to content

Commit 06aa886

Browse files
author
Chau Tran
authored
Create index.d.ts
1 parent 79f7369 commit 06aa886

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

index.d.ts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
declare module "pull-to-refresh-react" {
2+
import React from "react";
3+
4+
/**
5+
* PullToRefresh Component options
6+
*/
7+
export interface PullToRefreshOptions {
8+
pullDownHeight?: number;
9+
}
10+
11+
export interface PullToRefreshProps {
12+
onRefresh: () => Promise<any>;
13+
textError?: string,
14+
textStart?: string,
15+
textReady?: string,
16+
textRefresh?: string
17+
options?: PullToRefreshOptions;
18+
}
19+
20+
const PullToRefresh: React.ComponentType<PullToRefreshProps>
21+
export default PullToRefresh;
22+
}

0 commit comments

Comments
 (0)