import express from 'express' ; import { BaseResult } from './BaseResult' ; export class NextResult < E > extends BaseResult { constructor ( public readonly error ? ) { super ( ) ; } async execute ( req , res , next ) { return next ( this . error ) ; } }