JSMonk / hegel

An advanced static type checker
https://hegel.js.org
MIT License
2.09k stars 59 forks source link

The object required is inferenced as unknown #353

Open pinxue opened 2 years ago

pinxue commented 2 years ago

environment: nodejs is added into .hegelrc

  3 | const asserts = require("assert");
> 4 | const assert = asserts.strict;
    |               ^^^^^^^^^^^^^^ Property "strict" does not exist in "unknown"

It seems @hegel/typings/assert.d.ts provided the type info but not applied.