flowts icon indicating copy to clipboard operation
flowts copied to clipboard

Type report

Open meandmax opened this issue 4 years ago • 0 comments

We have the need to generate a type report that we can see to what the types of a package are converted. Basically generating a report.json that shows all types and what they will be migrated to.

  1. Do you think that is valuable for this project?
  2. Do you have suggestions where and how to implement it.

Im happy to implement it, but would appreciate some guidance as you have a much better overall idea about the architecture of flowts.

{
  "lines": 500,
  "files": 20,
  "types": {
    "abstract": {
      "count": 23,
      "SomeAbstractType": {
        "targetType": "SomeAbstractType",
        "count": 23,
        "importedFrom": "@scope/abstract-type-package"
      }
    },
    "composed": {
      "count": 3,
      "Omit<AbstractType, { children: any }>": {
        "targetType": "Omit<AbstractType, { children: any }>",
        "count": 3
      }
    }
  },
}

meandmax avatar Jun 21 '21 22:06 meandmax