@wyw-in-js/shared
produces /// <reference types="node" />
which means anything including it enables global node types
#33
Labels
bug report 🦗
Issue is probably a bug, but it needs to be checked
needs: complete repro 🖥️
Issue need to have complete repro provided
Environment
@wyw-in-js/shared
version:0.2.2
Description
@wyw-in-js/shared
produces/// <reference types="node" />
in@wyw-in-js/shared/types/options/types.d.ts
@wyw-in-js/shared/types/options/types.d.ts
gets imported by@wyw-in-js/shared/types/options/isFeatureEnabled.d.ts
and then this by@wyw-in-js/shared/types/index.d.ts
@wyw-in-js/shared
automatically include all node.js specific type definitions even if it's a browser-facing project.@linaria/core
includes@wyw-in-js/shared
so you can understand that this is a problem since@linaria/core
is imported by all web-facing projectsReproducible Demo
@linaria/core
in project wherenodejs
modules are NOT included.@linaria/core
in ats
file.const timerId: number = setTimeout(...)
tsc
will fail with:TS2322: Type Timeout is not assignable to type number
becausenodejs
types flooded the global scope.@linaria/core
you don't get the error.The text was updated successfully, but these errors were encountered: