Skip to content

Imports

Accessing classes are cumbersome, update how consumers import and access classes.

Current Imports

import {nshmpHaz, nshmpWs} from '@ghsc/nshmp-web-utils`;

// Accessing hazard response
nshmpHaz.hazardService.HazardCalcResponse;

// Accessing fault section reponse
nshmpWs.faultSectionsService.FaultSectionsResponse;

Proposed Imports

import {nshmpHaz, nshmpWs} from '@ghsc/nshmp-web-utils`;

// Accessing hazard response
nshmpHaz.HazardCalcResponse;

// Accessing fault section response
nshmpWs.FaultSectionsResponse;