@@ -148,10 +148,14 @@ const RESETTABLE_OPTIONS: ResettableKeys<ManifestEndpoint> = {
148
148
serviceAccountEmail : null ,
149
149
} ;
150
150
151
+ interface ManifestOptions {
152
+ preserveExternalChanges ?: boolean ;
153
+ }
154
+
151
155
/**
152
156
* @internal
153
157
*/
154
- export function initEndpoint ( ...opts : { preserveExternalChanges ?: boolean } [ ] ) : ManifestEndpoint {
158
+ export function initEndpoint ( ...opts : ManifestOptions [ ] ) : ManifestEndpoint {
155
159
const endpoint : ManifestEndpoint = { } ;
156
160
if ( opts . every ( ( opt ) => ! opt ?. preserveExternalChanges ) ) {
157
161
for ( const key of Object . keys ( RESETTABLE_OPTIONS ) ) {
@@ -187,7 +191,7 @@ const RESETTABLE_RATE_LIMITS_OPTIONS: ResettableKeys<
187
191
* @internal
188
192
*/
189
193
export function initTaskQueueTrigger (
190
- ...opts : { preserveExternalChanges ?: boolean } [ ]
194
+ ...opts : ManifestOptions [ ]
191
195
) : ManifestEndpoint [ "taskQueueTrigger" ] {
192
196
let taskQueueTrigger = { } ;
193
197
if ( opts . every ( ( opt ) => ! opt ?. preserveExternalChanges ) ) {
@@ -229,7 +233,7 @@ const RESETTABLE_V2_SCHEDULE_OPTIONS: Omit<
229
233
function initScheduleTrigger (
230
234
resetOptions : Record < string , unknown > ,
231
235
schedule : string | Expression < string > ,
232
- ...opts : { preserveExternalChanges ?: boolean } [ ]
236
+ ...opts : ManifestOptions [ ]
233
237
) : ManifestEndpoint [ "scheduleTrigger" ] {
234
238
let scheduleTrigger : ManifestEndpoint [ "scheduleTrigger" ] = { schedule } ;
235
239
if ( opts . every ( ( opt ) => ! opt ?. preserveExternalChanges ) ) {
@@ -247,7 +251,7 @@ function initScheduleTrigger(
247
251
*/
248
252
export function initV1ScheduleTrigger (
249
253
schedule : string | Expression < string > ,
250
- ...opts : { preserveExternalChanges ?: boolean } [ ]
254
+ ...opts : ManifestOptions [ ]
251
255
) : ManifestEndpoint [ "scheduleTrigger" ] {
252
256
return initScheduleTrigger ( RESETTABLE_V1_SCHEDULE_OPTIONS , schedule , ...opts ) ;
253
257
}
@@ -257,7 +261,7 @@ export function initV1ScheduleTrigger(
257
261
*/
258
262
export function initV2ScheduleTrigger (
259
263
schedule : string | Expression < string > ,
260
- ...opts : { preserveExternalChanges ?: boolean } [ ]
264
+ ...opts : ManifestOptions [ ]
261
265
) : ManifestEndpoint [ "scheduleTrigger" ] {
262
266
return initScheduleTrigger ( RESETTABLE_V2_SCHEDULE_OPTIONS , schedule , ...opts ) ;
263
267
}
0 commit comments