mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 14:20:12 +00:00
Merge pull request #24163 from GlenCFL/jquery-removal
atom: remove jQuery as a dependency.
This commit is contained in:
9
types/atom/index.d.ts
vendored
9
types/atom/index.d.ts
vendored
@@ -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
|
||||
|
||||
/// <reference types="jquery" />
|
||||
/// <reference types="node" />
|
||||
|
||||
import { ReadStream, WriteStream } from "fs";
|
||||
@@ -2525,6 +2524,10 @@ export interface TextEditorRegistry {
|
||||
observe(callback: (editor: TextEditor) => void): Disposable;
|
||||
}
|
||||
|
||||
export interface JQueryCompatible<Element extends Node = HTMLElement> extends Iterable<Element> {
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user