Skip to content

fix: typescript declaration file #151

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/jsonpath.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,14 +146,14 @@ declare module 'jsonpath-plus' {
* Exposes the cache object for those who wish to preserve and reuse
* it for optimization purposes.
*/
static cache: any
cache: any

/**
* Accepts a normalized or unnormalized path as string and
* converts to an array: for example,
* `['$', 'aProperty', 'anotherProperty']`.
*/
static toPathArray(path: string): string[]
toPathArray(path: string): string[]

/**
* Accepts a path array and converts to a normalized path string.
Expand All @@ -162,7 +162,7 @@ declare module 'jsonpath-plus' {
* The JSONPath terminal constructions `~` and `^` and type operators
* like `@string()` are silently stripped.
*/
static toPathString(path: string[]): string
toPathString(path: string[]): string

/**
* Accepts a path array and converts to a JSON Pointer.
Expand All @@ -174,7 +174,7 @@ declare module 'jsonpath-plus' {
* The JSONPath terminal constructions `~` and `^` and type operators
* like `@string()` are silently stripped.
*/
static toPointer(path: string[]): any
toPointer(path: string[]): any

evaluate(
path: JSONPathOptions['path'],
Expand Down