MCPcopy
hub / github.com/prisma/prisma / isNestedItxScopeContext

Function isNestedItxScopeContext

packages/client/src/runtime/getPrismaClient.ts:269–281  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

267}
268
269function isNestedItxScopeContext(value: unknown): value is NestedItxScopeContext {
270 if (typeof value !== 'object' || value === null) {
271 return false
272 }
273
274 const objectValue = value as Record<string, unknown>
275 return (
276 objectValue['kind'] === 'nested' &&
277 typeof objectValue['txId'] === 'string' &&
278 typeof objectValue['scopeId'] === 'string' &&
279 isItxScopeState(objectValue['scopeState'])
280 )
281}
282
283function isItxScopeState(value: unknown): value is ItxScopeState {
284 if (typeof value !== 'object' || value === null) {

Callers 1

getItxScopeContextFunction · 0.85

Calls 1

isItxScopeStateFunction · 0.85

Tested by

no test coverage detected