-
Notifications
You must be signed in to change notification settings - Fork 356
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SecretParam TS type is not exported #2439
Labels
Comments
I found a few problems with this issue:
|
Looks like the issue may have been addressed in the functions SDK https://github.com/firebase/firebase-functions/blob/9c818713db511895a33378859ab1b9f2eef99179/src/params/types.ts#L429 If you are still experiencing this issue please open a new ticket on the https://github.com/firebase/firebase-functions/tree/master repo. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe your environment
Describe the problem
Using VSCode with ESLint & TypeScript enabled, I am trying to write a function that takes the results of
defineSecret()
and does some processing on it to reduce code duplication across my project. The issue is that the datatype returned,SecretParam
, is not exported.When trying:
VSCode reports:
TSC errors out with:
Relevant Code:
The code below is throwing ESLint errors and fails to compile with
tsc
:Workaround:
Put
// @ts-ignore
on the line immediately before theimport
lineThe text was updated successfully, but these errors were encountered: