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,82 @@
import { Post } from 'core/domain/posts'
export interface IProfileComponentProps {
/**
* Router match
*
* @type {*}
* @memberof IProfileComponentProps
*/
match: any
/**
* User's post
*
* @type {{[postId: string]: Post}}
* @memberof IProfileComponentProps
*/
posts: {[postId: string]: Post}
/**
* String user full name
*
* @type {string}
* @memberof IProfileComponentProps
*/
name: string
/**
* User tag line
*
* @type {string}
* @memberof IProfileComponentProps
*/
tagLine: string
/**
* User's avatar address
*
* @type {string}
* @memberof IProfileComponentProps
*/
avatar: string
/**
* It's current user profile {true} or not {false}
*
* @type {boolean}
* @memberof IProfileComponentProps
*/
isAuthedUser: boolean
/**
* User's banner
*
* @type {string}
* @memberof IProfileComponentProps
*/
banner: string
/**
* User identifier
*
* @type {string}
* @memberof IProfileComponentProps
*/
userId: string
/**
* Load user's post
*
* @memberof IProfileComponentProps
*/
loadPosts: () => any
/**
* Load user's profile
*
* @memberof IProfileComponentProps
*/
loadUserInfo: () => any
}