chore: init types folder and set redux and BaseScreen interface
This commit is contained in:
parent
3b97c34959
commit
34e6ece871
|
@ -0,0 +1,10 @@
|
|||
import { StackNavigationProp } from '@react-navigation/stack';
|
||||
import { Dispatch } from 'redux';
|
||||
|
||||
export interface BaseScreen {
|
||||
navigation: StackNavigationProp<any>;
|
||||
dispatch: Dispatch;
|
||||
theme: string;
|
||||
}
|
||||
|
||||
export * from './redux';
|
|
@ -0,0 +1,28 @@
|
|||
import { SetActiveUsers } from '../../actions/activeUsers';
|
||||
import { ActiveUsers } from '../../reducers/activeUsers';
|
||||
|
||||
export interface ApplicationState {
|
||||
settings: any;
|
||||
login: any;
|
||||
meteor: any;
|
||||
server: any;
|
||||
selectedUsers: any;
|
||||
createChannel: any;
|
||||
app: any;
|
||||
room: any;
|
||||
rooms: any;
|
||||
sortPreferences: any;
|
||||
share: any;
|
||||
customEmojis: any;
|
||||
activeUsers: ActiveUsers;
|
||||
usersTyping: any;
|
||||
inviteLinks: any;
|
||||
createDiscussion: any;
|
||||
inquiry: any;
|
||||
enterpriseModules: any;
|
||||
encryption: any;
|
||||
permissions: any;
|
||||
roles: any;
|
||||
}
|
||||
|
||||
export type ApplicationActions = SetActiveUsers;
|
Loading…
Reference in New Issue