Fixing common TS typings

@pklaschka This has been confirmed. OS is a module, not a global class. The typings will need to be updated.

@Velara Until the TypeScript typings are fixed you can get rid of the error with the following:

//@ts-ignore
const platform = require("os").platform();

Hope this helps!

3 Likes