Native.d.ts only applies in TypeScript mode, not plain JavaScript. This also confuses esbuild. Rather than try to fight that, return to having Native not be exported at all, using a translation layer.
Also, make sure we use "true" TypeScript enums rather than const enum, for the same reasons.
Native.d.ts only applies in TypeScript mode, not plain JavaScript. This also confuses esbuild. Rather than try to fight that, return to having Native not be exported at all, using a translation layer.
Also, make sure we use "true" TypeScript enums rather than
const enum
, for the same reasons.