Skip to content
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

writeFiles operation does not follow types. #27356

Open
1 task
mshima opened this issue Sep 22, 2024 · 0 comments
Open
1 task

writeFiles operation does not follow types. #27356

mshima opened this issue Sep 22, 2024 · 0 comments

Comments

@mshima
Copy link
Member

mshima commented Sep 22, 2024

Overview of the issue

writeFiles operation has a lot a legacy code inherited from writeFileFromDisk.
It needs to be re-implemented following typed parameters.

Reproduce the error
  • ✅ :
this.writeFiles({
  blocks: [
    {
      templates: [
        { sourceFile: data => data.applicationTypeFoo ? 'file_foo.ts' : 'file_bar.ts' },
      ],
    },
  ],
  context: application,
});
  • ❌ :
this.writeFiles({
  templates: [
    { sourceFile: data => data.applicationTypeFoo ? 'file_foo.ts' : 'file_bar.ts' },
  ],
  context: application,
});
Related issues
Suggest a Fix
JHipster Version(s)
Browsers and Operating System
  • Checking this box is mandatory (this is just to show you read everything)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant