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

5.x: add types for config.build.current #1322

Open
cossssmin opened this issue Jul 31, 2024 · 0 comments · Fixed by #1327 · May be fixed by #1299
Open

5.x: add types for config.build.current #1322

cossssmin opened this issue Jul 31, 2024 · 0 comments · Fixed by #1327 · May be fixed by #1299

Comments

@cossssmin
Copy link
Member

cossssmin commented Jul 31, 2024

  • Maizzle Version: 5.0.0-beta.18

config.build.current holds some path information about the template currently being processed, for example:

{
  path: {
    root: 'build_production',
    dir: 'build_production',
    base: 'transactional.html',
    ext: '.html',
    name: 'transactional'
  }
}

It would be useful to have types for this, for example when using config.build.current inside an event, for autocomplete:

export default {
  async afterTransformers({config}) {
    const template = config.build.current. // editor would suggest `name` here
  },
}
@cossssmin cossssmin linked a pull request Aug 19, 2024 that will close this issue
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 a pull request may close this issue.

1 participant