Skip to content

emitDts should print diagnostic messages #1835

@dangreen

Description

@dangreen

Describe the bug

When there is a type error in a svelte component, emitDts just silently doesn't emit .d.ts file

Reproduction

Any svelte component with type error

Expected behaviour

here need to handle the result of emit, and print diagnostic messages if any exists

System Info

  • OS: any
  • IDE: any

Which package is the issue about?

svelte2tsx

Additional Information, eg. Screenshots

Related issue: sveltejs/kit#3783

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions