Skip to content

Conversation

@Frizi
Copy link
Contributor

@Frizi Frizi commented Oct 27, 2025

Pull Request Description

Fixes #11348
Fixes #13499

image


/**
* A version of vue's {@link inject} that will also inject a value provided earlier
* within the same component's setup function.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, that’s nice. I think I needed that for… type annotation widget? (I don’t remember). Really annoying restriction on the Vue side.

return (toLowerSnakeCase(name) || 'arg') as Identifier
}

function toLowerSnakeCase(name: string): string {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don’t have unit tests for it, do we? I suppose we should add some.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Edit name right after creating User Defined Component. Renaming a collapsed function UX

3 participants