Skip to content

JSONPath Tools / @jsonpath-tools/jsonpath / SignatureHelpService

Class: SignatureHelpService

Provides a signature for a called function.

Constructors

new SignatureHelpService()

ts
new SignatureHelpService(queryOptions): SignatureHelpService

Parameters

queryOptions

QueryOptions

Query options.

Returns

SignatureHelpService

Methods

provideSignature()

ts
provideSignature(query, position): null | Signature

Provides a signature at the given caret position in the query text. When no signature is available it returns null.

Parameters

query

Query

Query.

position

number

Caret position in the query text (starts with 0).

Returns

null | Signature