UNPKG

create-hest-app

Version:

Create HestJS-powered applications with one command

13 lines (10 loc) 291 B
import { Query, IQueryResult } from '@hestjs/cqrs'; import { User } from '../entities'; export interface GetUserResult extends IQueryResult { user: User | null; } export class GetUserQuery extends Query<GetUserResult> { constructor(public readonly userId: string) { super(); } }