Skip to content

Hoist Astro's type generation for type saftey in authoring enviroments #120

@BryceRussell

Description

@BryceRussell

When developing a theme, types are generated inside a playground. This makes it hard to properly link types while developing a theme. To improve this, types could also be generated inside the theme package to prevent issues with hoisting or circular type references.

Things to consider:

  • Types are generated using the AIK utility addDts. This utility only generates types inside a user project, this issue would require a custom utility (or an upstream addition to AIK) for type generation inside a package
  • Where are these types generated inside a package? virtual.d.ts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    ImprovementImprovement to an existing featurebugSomething isn't workingtodoGoal for next major release

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions