SrsParam: number | string | SpatialReference

Specifies a spatial reference system.

const wgs84String = "EPSG:4326";
const wgs84Wkid = 4326;

import SpatialReference from "esri/geometry/SpatialReference";
const wgs84 = new SpatialReference({wkid:4326});