Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface FastPath<T>

Type parameters

  • T = any

Hierarchy

  • FastPath

Index

Properties

stack

stack: any[]

Methods

call

  • call<U>(callback: (path: this) => U, ...names: PropertyKey[]): U
  • Type parameters

    • U

    Parameters

    • callback: (path: this) => U
        • (path: this): U
        • Parameters

          • path: this

          Returns U

    • Rest ...names: PropertyKey[]

    Returns U

each

  • each(callback: (path: this) => void, ...names: PropertyKey[]): void
  • Parameters

    • callback: (path: this) => void
        • (path: this): void
        • Parameters

          • path: this

          Returns void

    • Rest ...names: PropertyKey[]

    Returns void

getName

  • Returns null | PropertyKey

getNode

  • getNode(count?: undefined | number): null | T
  • Parameters

    • Optional count: undefined | number

    Returns null | T

getParentNode

  • getParentNode(count?: undefined | number): null | T
  • Parameters

    • Optional count: undefined | number

    Returns null | T

getValue

  • getValue(): T
  • Returns T

map

  • map<U>(callback: (path: this, index: number) => U, ...names: PropertyKey[]): U[]
  • Type parameters

    • U

    Parameters

    • callback: (path: this, index: number) => U
        • (path: this, index: number): U
        • Parameters

          • path: this
          • index: number

          Returns U

    • Rest ...names: PropertyKey[]

    Returns U[]