Migrate components to typescript

This commit is contained in:
Qolzam
2017-10-30 20:48:18 +07:00
parent 97c2e0f157
commit 7bbb1679ad
346 changed files with 6045 additions and 3946 deletions

View File

@@ -0,0 +1,100 @@
export interface IMasterComponentProps {
/**
* Close gloal message
*
* @type {Function}
* @memberof IMasterProps
*/
closeMessage: Function,
/**
* Show progress bar information
*
* @type {*}
* @memberof IMasterProps
*/
progress: any,
/**
* Login a user
*
* @type {Function}
* @memberof IMasterProps
*/
login: Function,
/**
* Global state
*
* @type {*}
* @memberof IMasterProps
*/
global: any,
/**
* Set flag {false} which user data has not loaded
*
* @type {Function}
* @memberof IMasterProps
*/
defaultDataDisable: Function,
/**
* Logout current user
*
* @type {Function}
* @memberof IMasterProps
*/
logout: Function,
/**
* Clear user date from store
*
* @type {Function}
* @memberof IMasterProps
*/
clearData: Function,
/**
* Prepare default data for a guest user
*
* @type {Function}
* @memberof IMasterProps
*/
loadDataGuest: Function,
/**
* Set flag {true} which all user data has loaded
*
* @type {Function}
* @memberof IMasterProps
*/
defaultDataEnable: Function,
/**
* Load user data into store
*
* @type {Function}
* @memberof IMasterProps
*/
loadData: Function,
/**
* If all data from all entities are loaded {true} if not {false}
*
* @type {Boolean}
* @memberof IMasterProps
*/
loaded: Boolean,
/**
* If current user is guest {true} if no
*
* @type {Boolean}
* @memberof IMasterProps
*/
guest: Boolean,
/**
* If current user is authed {true} if not {false}
*
* @type {Boolean}
* @memberof IMasterProps
*/
authed: Boolean,
/**
* Authed user identifier
*
* @type {string}
* @memberof IMasterProps
*/
uid: string
}