跳到主要内容
版本:Next

ContextMiddlewareManager <CTX, R, N>

Hierarchy

Implements

Index

Constructors

externalconstructor

  • Type parameters

Methods

publicfindAndInsertAfter

  • move a middleware after another middleware

publicfindAndInsertBefore

  • move a middleware before another middleware

publicfindAndInsertFirst

  • findAndInsertFirst(middlewareOrName: string | CommonMiddleware<CTX, R, N>): void
  • find middleware and move to first

publicfindAndInsertLast

  • find middleware and move to last

publicfindItem

publicfindItemIndex

  • findItemIndex(middlewareOrName: string | number | CommonMiddleware<CTX, R, N>): number
  • find a middleware and return index

publicgetMiddlewareName

  • get name from middleware

publicgetNames

  • getNames(): string[]
  • get middleware name list

publicinsertAfter

  • insert a middleware or middleware array to after another middleware

publicinsertBefore

  • insert a middleware or middleware array to after another middleware

publicinsertFirst

  • insert a middleware or middleware array to first

publicinsertLast

  • insert a middleware or middleware array to last

publicpush

  • push(...items: any[]): number

publicremove

  • remove a middleware

publicunshift

  • unshift(...items: any[]): number