Skip to content

Commit 2e5881e

Browse files
author
brizental
committed
Fix testReset and testInitialize function signatures
1 parent 0dbba26 commit 2e5881e

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

glean/src/core/glean.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,11 @@ class Glean {
442442
* first_run_date) are cleared. Default to `true`.
443443
* @param config Glean configuration options.
444444
*/
445-
static async testInitialize(applicationId: string, uploadEnabled = true, config?: Configuration): Promise<void> {
445+
static async testInitialize(
446+
applicationId: string,
447+
uploadEnabled = true,
448+
config?: ConfigurationInterface
449+
): Promise<void> {
446450
Glean.setPlatform(TestPlatform);
447451
Glean.initialize(applicationId, uploadEnabled, config);
448452

@@ -480,7 +484,11 @@ class Glean {
480484
* first_run_date) are cleared. Default to `true`.
481485
* @param config Glean configuration options.
482486
*/
483-
static async testResetGlean(applicationId: string, uploadEnabled = true, config?: Configuration): Promise<void> {
487+
static async testResetGlean(
488+
applicationId: string,
489+
uploadEnabled = true,
490+
config?: ConfigurationInterface
491+
): Promise<void> {
484492
await Glean.testUninitialize();
485493

486494
// Clear the databases.

0 commit comments

Comments
 (0)