# @types/tether

> TypeScript definitions for tether

Latest version **1.4.9** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/tether
pnpm add @types/tether
yarn add @types/tether
bun add @types/tether
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.4.9 |
| Published | 2023-11-07 |
| First published | 2016-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51434 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/tether
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/tether
- npm.io page: https://npm.io/package/@types/tether

## Recent versions

- 1.4.9 (latest) — 2023-11-07
- 1.4.7 (ts4.3) — 2023-09-12
- 1.4.6 (ts3.6) — 2021-07-02
- 1.4.5 (ts3.2) — 2020-09-22
- 1.4.4 (ts2.3) — 2018-07-04
- 1.4.1 (ts2.0) — 2017-03-10
- 1.4.8 — 2023-10-18
- 1.4.3 — 2017-08-21
- 1.4.2 — 2017-06-15
- 1.4.0 — 2016-12-15
- 1.1.27 — 2016-09-19
- 1.1.26 — 2016-07-14
- 1.1.25-alpha — 2016-07-08
- 1.1.24-alpha — 2016-07-04
- 1.1.23-alpha — 2016-07-02
- … 6 more at https://npm.io/package/@types/tether/versions

## README

# Installation
> `npm install --save @types/tether`

# Summary
This package contains type definitions for tether (https://github.com/shipshapecode/tether).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/tether.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/tether/index.d.ts)
````ts
export = Tether;
export as namespace Tether;

// global Tether constructor
declare class Tether {
    constructor(options: Tether.ITetherOptions);

    public setOptions(options: Tether.ITetherOptions): void;
    public disable(): void;
    public enable(): void;
    public destroy(): void;
    public position(): void;

    public static position(): void;
}

declare namespace Tether {
    interface ITetherOptions {
        attachment: string;
        bodyElement?: HTMLElement | undefined;
        classes?: { [className: string]: boolean | string } | undefined;
        classPrefix?: string | undefined;
        constraints?: ITetherConstraint[] | undefined;
        element?: HTMLElement | string | any | undefined /* JQuery */;
        enabled?: boolean | undefined;
        offset?: string | undefined;
        optimizations?: any;
        target?: HTMLElement | string | any | undefined /* JQuery */;
        targetAttachment?: string | undefined;
        targetOffset?: string | undefined;
        targetModifier?: string | undefined;
    }

    interface ITetherConstraint {
        attachment?: string | undefined;
        outOfBoundsClass?: string | undefined;
        pin?: boolean | string[] | undefined;
        pinnedClass?: string | undefined;
        to?: string | HTMLElement | number[] | undefined;
    }
}

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 15:11:36 GMT
 * Dependencies: none

# Credits
These definitions were written by [Adi Dahiya](https://github.com/adidahiya).

---
_Source: https://npm.io/package/@types/tether · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
