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

Commit ad35e6f

Browse files
authored
Fixing type validation in some props
I followed the guide at http://framework7.io/docs/init-app.html
1 parent ad91162 commit ad35e6f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/Framework7.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export interface IFramework7Params {
5959
swipeoutNoFollow?: boolean;
6060
swipeoutRemoveWithTimeout?: boolean;
6161
// Smart Select Back link template
62-
smartSelectOpenIn?: string; // or 'popup' or 'picker'
62+
smartSelectOpenIn?: 'page' | 'popup' | 'picker';
6363
smartSelectBackText?: string;
6464
smartSelectPopupCloseText?: string;
6565
smartSelectPickerCloseText?: string;
@@ -69,7 +69,7 @@ export interface IFramework7Params {
6969
scrollTopOnNavbarClick?: boolean;
7070
scrollTopOnStatusbarClick?: boolean;
7171
// Panels
72-
swipePanel?: boolean; // or 'left' or 'right'
72+
swipePanel?: 'left' | 'right' | 'both' | boolean;
7373
swipePanelActiveArea?: number;
7474
swipePanelCloseOpposite?: boolean;
7575
swipePanelOnlyClose?: boolean;
@@ -176,4 +176,4 @@ export declare type Template7ReturnObject = {
176176
global: Object;
177177
}
178178

179-
export declare function Template7(): Template7ReturnObject
179+
export declare function Template7(): Template7ReturnObject

0 commit comments

Comments
 (0)