Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

419 B
Raw Blame
export type CompletionEntry = {
  text: string
  meta: string
  score: number
}

export type CompleterResult = {
  /**
   * List of completions to display
   */
  completions: CompletionEntry[]
}

export type Completer = (
  /**
   * The contents of the editor
   */
  text: string,
  /**
   * Position where the completer is fired
   */
  completePos: { line: number; ch: number }
) => Promise<CompleterResult | null>