MCPcopy
hub / github.com/freshframework/fresh / newMiddlewareCmd

Function newMiddlewareCmd

packages/fresh/src/commands.ts:112–118  ·  view source on GitHub ↗
(
  pattern: string,
  fns: MaybeLazyMiddleware<State>[],
  includeLastSegment: boolean,
)

Source from the content-addressed store, hash-verified

110 includeLastSegment: boolean;
111}
112export function newMiddlewareCmd<State>(
113 pattern: string,
114 fns: MaybeLazyMiddleware<State>[],
115 includeLastSegment: boolean,
116): MiddlewareCmd<State> {
117 return { type: CommandType.Middleware, pattern, fns, includeLastSegment };
118}
119
120export interface NotFoundCmd<State> {
121 type: CommandType.NotFound;

Callers 2

fsItemsToCommandsFunction · 0.90
useMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected