lwc icon indicating copy to clipboard operation
lwc copied to clipboard

Consolidate and expose type helpers

Open jhefferman-sfdc opened this issue 1 year ago • 2 comments

Is your feature request related to a problem? Please describe.

Redundant helper methods

Describe the solution you'd like

Consider whether the type helper functions defined in template-compiler -> estree could be exported and used in other contexts. Some type changes would be required.

Additional context

An example would be: https://github.com/salesforce/lwc/blob/ee2edae09f6e080ccc92703864a463e31b4bb3b3/packages/%40lwc/template-compiler/src/shared/estree.ts#L61

Which could serve as a replacement for the same function in shared.ts if the types were aligned.

jhefferman-sfdc avatar Dec 10 '24 17:12 jhefferman-sfdc

This issue has been linked to a new work item: W-17405443

git2gus[bot] avatar Dec 10 '24 17:12 git2gus[bot]

export * as utils in @lwc/template-compiler seems reasonable to me.

nolanlawson avatar Dec 10 '24 19:12 nolanlawson