Repository navigation
Fix issue where projectId and displayName are not getting parsed - #8635
Merged
Merged
Conversation
joehan
approved these changes
May 22, 2025
| } | ||
|
|
||
| async function promptAndCreateNewProject(): Promise<FirebaseProjectMetadata> { | ||
| async function promptAndCreateNewProject(options: any): Promise<FirebaseProjectMetadata> { |
Member
There was a problem hiding this comment.
this should probably be options: Options, right?
Contributor
Author
There was a problem hiding this comment.
Thanks for the feedback! didn't know we had an Options type, will update!
| }, | ||
| }); | ||
| export async function promptProjectCreation( | ||
| options: any, |
Member
There was a problem hiding this comment.
Same, probably should use Options as the type here.
Contributor
Author
There was a problem hiding this comment.
It looks like using the Options type raises and error

I'm guessing this is because displayName is not a property in either Options or BaseOptions, so displayName gets cast as unknown in [key: string]: unknown;
Lines 6 to 41 in d965588
Would it be okay to add displayName as a property in Options. Something like

joehan
enabled auto-merge (squash)
May 29, 2025 19:57
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixes #8634
Scenarios Tested
with [projectId] param
with [display-name] option
Sample Commands
firebase projects:create some-project-id