Skip to content

JSONPath cache, toPathArray(), toPathString(), toPointer() are not accessible when using typescript #150

Closed
@sdolski

Description

@sdolski

I am working with typescript and facing an issue by trying to use the following property and methods:

  • JSONPath.cache
  • JSONPath.toPathArray()
  • JSONPath.toPathString()
  • JSONPath.toPointer()

When accessing those property or methods I am getting the following errors:
Property 'toPathArray' does not exist on type 'JSONPathType'.ts(2339)

My guess is that the typescript declaration file jsonpath.d.ts is not correct.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions