import { register } from 'ngrx-domains' ; namespace UserModels { export class SimpleUser { constructor ( public name ) { } } } register ( UserModels . SimpleUser ) ; declare module 'ngrx-domains' { export namespace Model { export const SimpleUser ; export type SimpleUser = UserModels . SimpleUser ; } }