Refactor: Move data-access code to Typescript w/ shared interface
This commit is contained in:
parent
9ab54b9b83
commit
6b094e1514
35 changed files with 1695 additions and 598 deletions
|
@ -3,11 +3,7 @@ import { omit, reject } from 'lodash';
|
|||
import { normalize } from '../../types/PhoneNumber';
|
||||
import { trigger } from '../../shims/events';
|
||||
import { cleanSearchTerm } from '../../util/cleanSearchTerm';
|
||||
import {
|
||||
searchConversations as dataSearchConversations,
|
||||
searchMessages as dataSearchMessages,
|
||||
searchMessagesInConversation,
|
||||
} from '../../../js/modules/data';
|
||||
import dataInterface from '../../sql/Client';
|
||||
import { makeLookup } from '../../util/makeLookup';
|
||||
|
||||
import {
|
||||
|
@ -20,6 +16,12 @@ import {
|
|||
ShowArchivedConversationsActionType,
|
||||
} from './conversations';
|
||||
|
||||
const {
|
||||
searchConversations: dataSearchConversations,
|
||||
searchMessages: dataSearchMessages,
|
||||
searchMessagesInConversation,
|
||||
} = dataInterface;
|
||||
|
||||
// State
|
||||
|
||||
export type MessageSearchResultType = MessageType & {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue