Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit 5dcecd6

Browse files
Made this type a bit more clear
1 parent 8116003 commit 5dcecd6

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

demo/app/main-view-model.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {
44
admob as firebaseAdMob,
55
crashlytics as firebaseCrashlytics,
66
GetAuthTokenResult,
7+
GetRemoteConfigResult,
78
LogComplexEventTypeParameter,
89
performance as firebasePerformance,
910
storage as firebaseStorage,
@@ -790,10 +791,11 @@ export class HelloWorldModel extends Observable {
790791
firebase.getRemoteConfig({
791792
developerMode: true,
792793
cacheExpirationSeconds: 600, // 10 minutes, default is 12 hours
793-
properties: [{
794-
"key": "holiday_promo_enabled",
795-
"default": false
796-
},
794+
properties: [
795+
{
796+
"key": "holiday_promo_enabled",
797+
"default": false
798+
},
797799
{
798800
"key": "default_only_prop",
799801
"default": 77
@@ -815,7 +817,7 @@ export class HelloWorldModel extends Observable {
815817
"default": 11
816818
}]
817819
}).then(
818-
result => {
820+
(result: GetRemoteConfigResult) => {
819821
console.log("remote config fetched: " + JSON.stringify(result.properties));
820822
alert({
821823
title: `Fetched at ${result.lastFetch} ${result.throttled ? '(throttled)' : ''}`,

0 commit comments

Comments
 (0)