chore: init types folder and set redux and BaseScreen interface

This commit is contained in:
GleidsonDaniel 2021-12-21 10:11:40 -03:00
parent 3b97c34959
commit 34e6ece871
2 changed files with 38 additions and 0 deletions

10
app/types/index.ts Normal file
View File

@ -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';

28
app/types/redux/index.ts Normal file
View File

@ -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;