You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unable to use result of defineString in runWith config #5347
Leads to TS error Type 'StringParam' is not assignable to type 'string | ResetValue | undefined'. Type 'Param<string>' is not assignable to type 'ResetValue'.
I can vpcConnector: vpcConnector.value() but from the docs, this seems like an incorrect approach?
[REQUIRED] Steps to reproduce
See example above.
[REQUIRED] Expected behavior
Use variables created from defineString in runtime config in TS function
[REQUIRED] Actual behavior
Types won't allow return value of defineString to be used in runtime config.
This issue does not have all the information required by the template. Looks like you forgot to fill out some sections. Please update the issue with more information.
Activity
google-oss-bot commentedon Dec 19, 2022
This issue does not have all the information required by the template. Looks like you forgot to fill out some sections. Please update the issue with more information.
Berlioz commentedon Dec 20, 2022
Seems like we forgot to update the type definition of VpcConnector in the options structs. firebase/firebase-functions#1329 should fix it.
RYFN commentedon Feb 13, 2023
The above fix is working great for VpcConnector! Thank you.
An extension to this, when using defineString in region, workaround of casting
as anyworks, but is undesirable. Using v4.2.1Would you like me to raise this as a separate issue?
joehan commentedon Feb 14, 2023
@RYFN Yep, please raise a separate issue for that. I'm gonna close this one since it appears to be fixed.