MCPcopy Create free account
hub / github.com/upstash/jstack / isOperationType

Method isOperationType

packages/jstack/src/server/router.ts:198–205  ·  view source on GitHub ↗
(value: any)

Source from the content-addressed store, hash-verified

196 }
197
198 private isOperationType(value: any): value is OperationType<any, any, any> {
199 return (
200 value &&
201 typeof value === "object" &&
202 "type" in value &&
203 (value.type === "get" || value.type === "post" || value.type === "ws")
204 )
205 }
206
207 private registerOperation(
208 path: string,

Callers 1

setupRoutesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected