Don't enforce "skipLibCheck: true" #73
Labels
Domain: main
[Issue / PR] describes change in the functionality, its optimization
good first issue
[Issue] can be addressed by a first-time contributor
Pending: blocked
[Issue / PR] cannot be addressed until another issue is resolved
Pending: unclear
[Issue] not yet fully defined
Priority: high
[Issue / PR] must be addressed as soon as possible
Type: bug
[Issue / PR] addresses malfunction
Current export structure uses @ts-ignore to suppress conflicting
export =
andexport type {};
in src/index.ts, however both are needed to properly support CommonJS'sconst xrange = require("xrange");
as well as TypeScript'simport xrange from "xrange";
syntax.Unfortunately though, the
// @ts-ignore
comments is stripped out on build (and it should be frankly), which produces error in node_modules folder of dependent projects. Since there's no way of fixing this error (this would require manually changing code in node_modules), the only (adequate) way to suppress the error is to setskipLibCheck: true
compile option.Find a fix (probably, wait for microsoft/TypeScript#38866 to be implemented) that would remove the requirement of
skipLibCheck: true
The text was updated successfully, but these errors were encountered: