Expose data helpers for dev tools use
This commit is contained in:
parent
91a34749c1
commit
0f2cda876c
2 changed files with 13 additions and 0 deletions
|
@ -10,7 +10,9 @@ import * as Curve from './Curve';
|
|||
import { start as conversationControllerStart } from './ConversationController';
|
||||
import * as Groups from './groups';
|
||||
import OS from './util/os/osMain';
|
||||
import { isProduction } from './util/version';
|
||||
import * as RemoteConfig from './RemoteConfig';
|
||||
import { DataReader, DataWriter } from './sql/Client';
|
||||
|
||||
// Components
|
||||
import { ConfirmationDialog } from './components/ConfirmationDialog';
|
||||
|
@ -463,5 +465,12 @@ export const setup = (options: {
|
|||
Services,
|
||||
State,
|
||||
Types,
|
||||
|
||||
...(isProduction(window.getVersion())
|
||||
? {}
|
||||
: {
|
||||
DataReader,
|
||||
DataWriter,
|
||||
}),
|
||||
};
|
||||
};
|
||||
|
|
4
ts/window.d.ts
vendored
4
ts/window.d.ts
vendored
|
@ -170,6 +170,10 @@ export type SignalCoreType = {
|
|||
};
|
||||
conversationControllerStart: () => void;
|
||||
challengeHandler?: ChallengeHandler;
|
||||
|
||||
// Only for debugging in Dev Tools
|
||||
DataReader?: unknown;
|
||||
DataWriter?: unknown;
|
||||
};
|
||||
|
||||
declare global {
|
||||
|
|
Loading…
Reference in a new issue