Expose data helpers for dev tools use
This commit is contained in:
parent
6cd18018ca
commit
6562314d00
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 { start as conversationControllerStart } from './ConversationController';
|
||||||
import * as Groups from './groups';
|
import * as Groups from './groups';
|
||||||
import OS from './util/os/osMain';
|
import OS from './util/os/osMain';
|
||||||
|
import { isProduction } from './util/version';
|
||||||
import * as RemoteConfig from './RemoteConfig';
|
import * as RemoteConfig from './RemoteConfig';
|
||||||
|
import { DataReader, DataWriter } from './sql/Client';
|
||||||
|
|
||||||
// Components
|
// Components
|
||||||
import { ConfirmationDialog } from './components/ConfirmationDialog';
|
import { ConfirmationDialog } from './components/ConfirmationDialog';
|
||||||
|
@ -463,5 +465,12 @@ export const setup = (options: {
|
||||||
Services,
|
Services,
|
||||||
State,
|
State,
|
||||||
Types,
|
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;
|
conversationControllerStart: () => void;
|
||||||
challengeHandler?: ChallengeHandler;
|
challengeHandler?: ChallengeHandler;
|
||||||
|
|
||||||
|
// Only for debugging in Dev Tools
|
||||||
|
DataReader?: unknown;
|
||||||
|
DataWriter?: unknown;
|
||||||
};
|
};
|
||||||
|
|
||||||
declare global {
|
declare global {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue