I'm imported clusters as
import * as cluster from "cluster";
and when I'm trying to check cluster.isMaster in if(cluster.isMaster){} I'm getting this error
TS2339: Property 'isMaster' does not exist on type 'typeof import("cluster")'.
and
import cluster from "cluster";
I'm getting that cluster is undefined.
How can I solve the problem in ts, how can I import clusters in ts and use them?