Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/dxx/src/lib/axe/$deps.ts>Offset

🚀 (Deno) enhanced executor
Latest
interface Offset
import { type Offset } from "https://deno.land/x/dxx@rf/src/lib/axe/$deps.ts";

If provided, continue skipping until:

  1. The file or method is found
  2. Once found, will continue until neither the file nor method are found anymore
  3. Once exited, the frame offset will then apply

If you wish to capture the found method or the file, combine them with frames: -1 or immediate: true.

If you wish for more customisation than this, create an issue requesting passing a custom skip handler function, as more variance to this interface is too much customisation complexity.

Properties

optional
method: RegExp | string | null

if provided, continue until a method containing or matching this string is exited if provided alongside a file, will continue until neither the file nor method are found this allows file and method to act as fallbacks for each other, such that if one is not found, it doesn't skip everything

optional
file: RegExp | string | null

if provided, continue until a file containing or matching this string is exited if provided alongside a method, will continue until neither the file nor method are found this allows file and method to act as fallbacks for each other, such that if one is not found, it doesn't skip everything

optional
frames: number

once we have satisfied the found condition, if any, then apply this index offset to the frames e.g. 1 would mean next frame, and -1 would mean the previous frame Use -1 to go back to the found method or file

optional
immediate: boolean

once we have satisfied the found condition, should we apply the frame offset immediately, or wait until the found condition has exited