Skip to content

Commit

Permalink
doc: fix typos & clarify comments
Browse files Browse the repository at this point in the history
  • Loading branch information
le-harivansh authored Apr 21, 2024
1 parent 6538ede commit 025ed53
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,17 @@ import { MiddlewareConsumer } from './middleware-consumer.interface';
*/
export interface MiddlewareConfigProxy {
/**
* Excludes routes from the currently processed middleware.
* Routes to exclude from the current middleware.
*
* @param {(string | RouteInfo)[]} routes
* @returns {MiddlewareConfigProxy}
*/
exclude(...routes: (string | RouteInfo)[]): MiddlewareConfigProxy;

/**
* Attaches passed either routes or controllers to the currently configured middleware.
* If you pass a class, Nest would attach middleware to every path defined within this controller.
* Attaches either routes or controllers to the current middleware.
* If you pass a controller class, Nest will attach the current middleware to every path
* defined within it.
*
* @param {(string | Type | RouteInfo)[]} routes
* @returns {MiddlewareConsumer}
Expand Down

0 comments on commit 025ed53

Please sign in to comment.