Skip to content

Commit bb407c6

Browse files
authored
fix: export param types from firebase-functions/params (#1789)
* 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 #1777 * nit: merge export * add changelog. * nit: fix pr link in changelog
1 parent fd0e291 commit bb407c6

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
- Export param types (SecretParam, StringParam, etc.) from firebase-functions/params for type annotations. (#1789)
2+
- Remove attemptDeadlineSeconds in v2 scheduled functions. (#1776)
13
- Allow `JsonSecretParam` in function `secrets` option arrays. (#1788)

src/params/index.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,19 @@ import {
4040
} from "./types";
4141

4242
export { BUCKET_PICKER, select, multiSelect } from "./types";
43-
export type { TextInput, SelectInput, SelectOptions, MultiSelectInput } from "./types";
43+
export type {
44+
TextInput,
45+
SelectInput,
46+
SelectOptions,
47+
MultiSelectInput,
48+
Param,
49+
SecretParam,
50+
JsonSecretParam,
51+
StringParam,
52+
BooleanParam,
53+
IntParam,
54+
ListParam,
55+
} from "./types";
4456

4557
export { Expression };
4658
export type { ParamOptions };

0 commit comments

Comments
 (0)