From 422b7f22ab45fa015750f0ffd6c0d038c2c8b7c8 Mon Sep 17 00:00:00 2001 From: Daniel Lee Date: Tue, 16 Dec 2025 11:25:18 -0800 Subject: [PATCH 1/4] fix: export param types from firebase-functions/params Export SecretParam, JsonSecretParam, StringParam, BooleanParam, IntParam, ListParam, and Param types to allow users to import them for type annotations. Fixes https://github.com/firebase/firebase-functions/issues/1777 --- src/params/index.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/params/index.ts b/src/params/index.ts index baef1c760..cd7235924 100644 --- a/src/params/index.ts +++ b/src/params/index.ts @@ -41,6 +41,15 @@ import { export { BUCKET_PICKER, select, multiSelect } from "./types"; export type { TextInput, SelectInput, SelectOptions, MultiSelectInput } from "./types"; +export type { + Param, + SecretParam, + JsonSecretParam, + StringParam, + BooleanParam, + IntParam, + ListParam, +} from "./types"; export { Expression }; export type { ParamOptions }; From b2a9f42e52b323fd96444376f0079d2528cc415d Mon Sep 17 00:00:00 2001 From: Daniel Lee Date: Tue, 16 Dec 2025 11:30:01 -0800 Subject: [PATCH 2/4] nit: merge export --- src/params/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/params/index.ts b/src/params/index.ts index cd7235924..3542c98e9 100644 --- a/src/params/index.ts +++ b/src/params/index.ts @@ -40,8 +40,11 @@ import { } from "./types"; export { BUCKET_PICKER, select, multiSelect } from "./types"; -export type { TextInput, SelectInput, SelectOptions, MultiSelectInput } from "./types"; export type { + TextInput, + SelectInput, + SelectOptions, + MultiSelectInput, Param, SecretParam, JsonSecretParam, From 2fb121e57f26c917c52ba60cdaee0c5415167049 Mon Sep 17 00:00:00 2001 From: Daniel Lee Date: Tue, 16 Dec 2025 11:32:49 -0800 Subject: [PATCH 3/4] add changelog. --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e69de29bb..2eb0a52e8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -0,0 +1,2 @@ +- Export param types (SecretParam, StringParam, etc.) from firebase-functions/params for type annotations. (#1777) +- Remove attemptDeadlineSeconds in v2 scheduled functions. (#1776) From a67a19ad1edc736557b5f2f6ae33ecf6ee4144b6 Mon Sep 17 00:00:00 2001 From: Daniel Lee Date: Tue, 16 Dec 2025 11:38:07 -0800 Subject: [PATCH 4/4] nit: fix pr link in changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2eb0a52e8..8f1210c87 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,2 +1,2 @@ -- Export param types (SecretParam, StringParam, etc.) from firebase-functions/params for type annotations. (#1777) +- Export param types (SecretParam, StringParam, etc.) from firebase-functions/params for type annotations. (#1789) - Remove attemptDeadlineSeconds in v2 scheduled functions. (#1776)