Migrate components to typescript
This commit is contained in:
82
src/components/profile/IProfileComponentProps.ts
Normal file
82
src/components/profile/IProfileComponentProps.ts
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user