FlorianRappl / dets

Generate a single declaration file for your TypeScript project. :rocket:
https://piral.io
MIT License
24 stars 5 forks source link

Exporting class results in interface instead of class #1

Closed SantoJambit closed 4 years ago

SantoJambit commented 4 years ago

Bug Report

Moved from Piral:

Prerequisites

Environment Details and Version

piral 0.10.9

Description

When trying to export a class, you get an interface

Steps to Reproduce

  1. export a class

Expected behavior

a class export declaration

Actual behavior

an interface export declaration

Possible Origin / Solution

See the MWE: https://github.com/SantoJambit/shell-mwe/commit/f4def2358c36b45e052b6aec1de3ec8f772587ed

FlorianRappl commented 4 years ago

A failing (isolated) test would be appreciated. Thanks!

Keep in mind that it should export a const / class whatever instance as this is the nature of default. The type of this instance is the interesting part. If its any but should not be then indeed this is an issue, otherwise it works as it should.

SantoJambit commented 4 years ago

It seems you already created an isolated test. I'm assuming your comment was about the other issue.

FlorianRappl commented 4 years ago

Yes, this is currently still open. Need to find how constructors can be reliably resolved.