MCPcopy Create free account
hub / github.com/arktypeio/arktype / getCallStack

Function getCallStack

ark/fs/caller.ts:11–17  ·  view source on GitHub ↗
({
	offset = 0
}: GetCallStackOptions = {})

Source from the content-addressed store, hash-verified

9}
10
11export const getCallStack = ({
12 offset = 0
13}: GetCallStackOptions = {}): string[] => {
14 const frames = getFramesFromError(new Error())
15 frames.splice(1, 1 + offset)
16 return frames
17}
18
19export type LinePosition = {
20 line: number

Callers 2

attestInternalFunction · 0.90
getBenchCtxFunction · 0.90

Calls 1

getFramesFromErrorFunction · 0.90

Tested by

no test coverage detected