Closed vilicvane closed 2 years ago
Use import in a d.ts file to reference node types, so that it is included only during build.
import
d.ts
node
Requires manual polyfill for NodeJS.Platform, closing for now. Anyone needs this can use @vilic/detect-browser with:
NodeJS.Platform
@vilic/detect-browser
declare namespace NodeJS { type Platform = never; }
Use
import
in ad.ts
file to referencenode
types, so that it is included only during build.