ServerlesslyStack/Serverlessly

View on GitHub
@serverlessly/core/lib/helpers/validate-middlewares.ts

Summary

Maintainability
A
0 mins
Test Coverage
export function validateMiddlewares<TMiddleware>(
  middlewares: TMiddleware[]
): void {
  if (!middlewares.length) throw new Error('No Middleware Found');
}