kungfooman / RuntimeTypeInspector.js

Checking JSDoc types at runtime for high-quality types - Trust is good, control is better.
MIT License
8 stars 0 forks source link

Implement typeof expression in all three expand functions #73

Closed kungfooman closed 9 months ago

kungfooman commented 9 months ago

Fixes: #71

Output of typeof Number via REPL/expandType is now:

// expandTypeTS:
{
  "type": "typeof",
  "argument": "Number"
}
// expandTypeBabelTS:
{
  "type": "typeof",
  "argument": "Number"
}
// expandTypeDepFree:
{
  "type": "typeof",
  "argument": "Number"
}