diff --git a/types/atom/index.d.ts b/types/atom/index.d.ts index 6a68d685a1..df446d50c3 100644 --- a/types/atom/index.d.ts +++ b/types/atom/index.d.ts @@ -9,7 +9,6 @@ // NOTE: only those classes exported within this file should be retain that status below. // https://github.com/atom/atom/blob/v1.24.0/exports/atom.js -/// /// import { ReadStream, WriteStream } from "fs"; @@ -2525,6 +2524,10 @@ export interface TextEditorRegistry { observe(callback: (editor: TextEditor) => void): Disposable; } +export interface JQueryCompatible extends Iterable { + jquery: string; +} + export type TooltipPlacement = |"top"|"bottom"|"left"|"right" |"auto"|"auto top"|"auto bottom"|"auto left"|"auto right"; @@ -2532,7 +2535,7 @@ export type TooltipPlacement = /** Associates tooltips with HTML elements or selectors. */ export interface TooltipManager { /** Add a tooltip to the given element. */ - add(target: HTMLElement, options: { + add(target: HTMLElement | JQueryCompatible, options: { item?: object, } | { title?: string|(() => string), @@ -6754,7 +6757,7 @@ export interface Tooltip { enabled: boolean; timeout: number; hoverState: "in"|"out"|null; - element: JQuery|HTMLElement; + element: HTMLElement; getTitle(): string; getTooltipElement(): HTMLElement;