Skip to content
Prev Previous commit
Next Next commit
Add export for new type ServerTemplateDataType to index.ts
  • Loading branch information
trekforever committed Apr 5, 2024
commit 05ba48ced6179ee442f7e485785a223177f60f59
4 changes: 3 additions & 1 deletion etc/firebase-admin.remote-config.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ export interface InAppDefaultValue {

// @public
export interface InitServerTemplateOptions extends GetServerTemplateOptions {
// Warning: (ae-forgotten-export) The symbol "ServerTemplateDataType" needs to be exported by the entry point index.d.ts
template?: ServerTemplateDataType;
}

Expand Down Expand Up @@ -200,6 +199,9 @@ export interface ServerTemplateData {
version?: Version;
}

// @public
export type ServerTemplateDataType = ServerTemplateData | string;

// @public
export type TagColor = 'BLUE' | 'BROWN' | 'CYAN' | 'DEEP_ORANGE' | 'GREEN' | 'INDIGO' | 'LIME' | 'ORANGE' | 'PINK' | 'PURPLE' | 'TEAL';

Expand Down
1 change: 1 addition & 0 deletions src/remote-config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export {
ServerConfig,
ServerTemplate,
ServerTemplateData,
ServerTemplateDataType,
TagColor,
Value,
ValueSource,
Expand Down
14 changes: 7 additions & 7 deletions src/remote-config/remote-config-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,13 @@ export interface GetServerTemplateOptions {
defaultConfig?: DefaultConfig;
}

/**
* Represents the type of a Remote Config server template that can be set on
* {@link ServerTemplate}. This can either be a {@link ServerTemplateData} object
* or a template JSON string.
*/
export type ServerTemplateDataType = ServerTemplateData | string;

/**
* Represents optional arguments that can be used when instantiating
* {@link ServerTemplate} synchonously.
Expand All @@ -379,13 +386,6 @@ export interface InitServerTemplateOptions extends GetServerTemplateOptions {
template?: ServerTemplateDataType,
}

/**
* Represents the type of a Remote Config server template that can be set on
* {@link ServerTemplate}. This can either be a {@link ServerTemplateData} object
* or a template JSON string.
*/
export type ServerTemplateDataType = ServerTemplateData | string;

/**
* Represents a stateful abstraction for a Remote Config server template.
*/
Expand Down