Skip to content

Commit ad74ca5

Browse files
Add setCustomSignals() under firebase/compat
1 parent ea317aa commit ad74ca5

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

packages/firebase/compat/index.d.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1971,6 +1971,11 @@ declare namespace firebase.remoteConfig {
19711971
* Defines the log level to use.
19721972
*/
19731973
setLogLevel(logLevel: LogLevel): void;
1974+
1975+
/**
1976+
* Sets custom signals for the Remote Config instance.
1977+
*/
1978+
setCustomSignals(customSignals: CustomSignals): Promise<void>;
19741979
}
19751980

19761981
/**
@@ -2046,6 +2051,19 @@ declare namespace firebase.remoteConfig {
20462051
* Defines levels of Remote Config logging.
20472052
*/
20482053
export type LogLevel = 'debug' | 'error' | 'silent';
2054+
2055+
/**
2056+
* Defines the type for representing custom signals and their values.
2057+
*
2058+
* <p>The values in CustomSignals must be one of the following types:
2059+
*
2060+
* <ul>
2061+
* <li><code>string</code>
2062+
* <li><code>number</code>
2063+
* </ul>
2064+
*/
2065+
export type CustomSignals = {[key: string]: string | number};
2066+
20492067
/**
20502068
* This method provides two different checks:
20512069
*

0 commit comments

Comments
 (0)