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
|
@ -1,9 +1,5 @@
|
|||
import { Dictionary, omit, reject } from 'lodash';
|
||||
import {
|
||||
getRecentStickers,
|
||||
updateStickerLastUsed,
|
||||
updateStickerPackStatus,
|
||||
} from '../../../js/modules/data';
|
||||
import dataInterface from '../../sql/Client';
|
||||
import {
|
||||
downloadStickerPack as externalDownloadStickerPack,
|
||||
maybeDeletePack,
|
||||
|
@ -13,6 +9,12 @@ import { trigger } from '../../shims/events';
|
|||
|
||||
import { NoopActionType } from './noop';
|
||||
|
||||
const {
|
||||
getRecentStickers,
|
||||
updateStickerLastUsed,
|
||||
updateStickerPackStatus,
|
||||
} = dataInterface;
|
||||
|
||||
// State
|
||||
|
||||
export type StickerDBType = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue