import { Nohm, NohmModel, ValidationError } from 'nohm'; // or if your environment does not support module import // const NohmModule = require('nohm'); // access NohmModule.Nohm, NohmModule.NohmModel and NohmModule.ValidationError // This is the parent object where you set redis connection, create your models and some other configuration stuff const nohm = Nohm; nohm.setPrefix('example'); // This