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

Commit e102654

Browse files
bc022699bc022699
authored andcommitted
Fix typings
1 parent e04f6b4 commit e102654

3 files changed

Lines changed: 9 additions & 7 deletions

File tree

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@
5757
"change-case": "^3.0.0",
5858
"framework7": "^1.5.0",
5959
"query-string": "^4.3.1",
60-
"react": "^15.4.0",
6160
"universal-router": "^2.0.0"
61+
},
62+
"peerDependencies": {
63+
"react": "15.x"
6264
}
6365
}

src/Framework7.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,10 +167,10 @@ export declare function Dom7(selector: string, context: string): Dom7ReturnObjec
167167

168168
export declare type Template7ReturnObject = {
169169
compile: (template: string) => void;
170-
registerHelper(name: string, helper: () => void);
171-
unregisterHelper(name: string);
172-
registerPartial(name: string, helper: string);
173-
unregisterPartial(name: string);
170+
registerHelper: (name: string, helper: () => void) => void;
171+
unregisterHelper: (name: string) => void;
172+
registerPartial: (name: string, helper: string) => void;
173+
unregisterPartial: (name: string) => void;
174174
global: Object;
175175
}
176176

src/components/Framework7App.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ export interface IFramework7AppContext {
3131
themeClass: string;
3232
routes: IFramework7Route[];
3333
getFramework7: (callback: (f7: Framework7) => void) => void;
34-
onRouteChange: (componentInstance, callback: (route) => void) => void;
35-
unregisterRouteChange: (callback: (componentInstance) => void) => void;
34+
onRouteChange: (componentId: number, callback: (route: IFramework7Route) => void) => void;
35+
unregisterRouteChange: (callback: (componentId: number) => void) => void;
3636
getCurrentRoute: () => any;
3737
}
3838

0 commit comments

Comments
 (0)