Class PineDocsManager

PineDocsManager handles the management of Pine documentation. It loads, retrieves, and sets various types of documentation-related data.

Indexable

[key: string]: any

index signature

Constructors

Properties

Docs: Record<string, any>
UDTDocs: Record<string, any>[]
aliases: string[] = []
annotationsDocs: Record<string, any>[]
cleaned: boolean = false
completionFunctionsDocs: Record<string, any>[]
constantsDocs: Record<string, any>[]
controlsDocs: Record<string, any>[]
docAliases: string[] = ...
fields2Docs: Record<string, any>[]
fieldsDocs: Record<string, any>[]
functions2Docs: Record<string, any>[]
functionsDocs: Record<string, any>[]
importAliases: string[] = []
importsDocs: Record<string, any>[]
methods2Docs: Record<string, any>[]
methodsDocs: Record<string, any>[]
typesDocs: Record<string, any>[]
variables2Docs: Record<string, any>[]
variablesDocs: Record<string, any>[]

Accessors

  • get getAliases(): string[]
  • the getAliases function is used to get the aliases for the current document

    Returns string[]

    The aliases.

  • set setImportAliases(aliases): void
  • the setImportAliases function is used to set the imported namespace aliases

    Parameters

    • aliases: string[]

      The aliases to set.

    Returns void

Methods

  • the cleanDocs function is used to clean the docs

    Returns void

    The cleaned docs.

  • Retrieves the annotations documentation.

    Returns Record<string, any>[]

    The annotations documentation.

  • Retrieves the completion functions documentation.

    Returns Record<string, any>[]

    The completion functions documentation.

  • Retrieves the constants documentation.

    Returns Record<string, any>[]

    The constants documentation.

  • Retrieves the controls documentation.

    Returns Record<string, any>[]

    The controls documentation.

  • the getDocs function is used to get the docs for a given key

    Parameters

    • Rest ...keys: string[]

      The keys to get the docs for.

    Returns unknown[]

    The docs.

  • Retrieves the fields documentation.

    Returns Record<string, any>[]

    The fields documentation.

  • Retrieves the second set of fields documentation.

    Returns Record<string, any>[]

    The second set of fields documentation.

  • Retrieves the functions documentation.

    Returns Record<string, any>[]

    The functions documentation.

  • Retrieves the second set of functions documentation.

    Returns Record<string, any>[]

    The second set of functions documentation.

  • Retrieves the imports documentation.

    Returns Record<string, any>[]

    The imports documentation.

  • Returns a Map where the key is the 'name' property from the docs and the value is the doc object

    Parameters

    • Rest ...keys: string[]

      The keys to get the map for.

    Returns Map<string, PineDocsManager>

    The map.

  • Retrieves the methods documentation.

    Returns Record<string, any>[]

    The methods documentation.

  • Retrieves the second set of methods documentation.

    Returns Record<string, any>[]

    The second set of methods documentation.

  • Retrieves the typedocs for the getSwitch function.

    Parameters

    • key: string

      The key to switch on.

    Returns Record<string, any>[]

    The typedocs for the getSwitch function.

  • Retrieves the types documentation.

    Returns Record<string, any>[]

    The types documentation.

  • Retrieves the UDT (User-Defined Types) documentation.

    Returns Record<string, any>[]

    The UDT documentation.

  • Retrieves the variables documentation.

    Returns Record<string, any>[]

    The variables documentation.

  • Retrieves the second set of variables documentation.

    Returns Record<string, any>[]

    The second set of variables documentation.

  • Helper function to merge new docs into current docs

    Parameters

    • currentDocs: any[]

      The current docs.

    • newDocs: any[]

      The new docs.

    Returns any[]

    The merged docs.

  • the setDocs function is used to set the docs for a given key

    Parameters

    • newDocs: any

      The new docs to set.

    • key: string

      The key to set the docs for.

    Returns void

    The key.

  • the setImportsDocs function is used to sed the imports key of the response object

    Parameters

    • docs: any

      The docs to set.

    Returns void

    The key.

  • the setParsed function is used to set the parsed docs for a given key

    Parameters

    • docs: any[]

      The docs to set.

    • keyType: string

      The key type to set the docs for.

    Returns void

  • Sets the typedocs for the setSwitch function.

    Parameters

    • key: string

      The key to switch on.

    • docs: any

      The docs to set.

    Returns void

    The typedocs for the setSwitch function.

Generated using TypeDoc