# @types/jquery.timeago

> TypeScript definitions for jquery.timeago

Latest version **1.0.34** (published 2024-01-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/jquery.timeago
pnpm add @types/jquery.timeago
yarn add @types/jquery.timeago
bun add @types/jquery.timeago
```

## 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.0.34 |
| Published | 2024-01-30 |
| First published | 2016-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 5.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51443 |
| Maintainers | types |

## Links

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

## Dependencies (1)

- [@types/jquery](https://npm.io/package/@types/jquery.md) *

## Recent versions

- 1.0.34 (latest) — 2024-01-30
- 1.0.33 (ts4.5) — 2023-11-07
- 1.0.30 (ts3.6) — 2021-07-08
- 1.0.29 (ts2.3) — 2017-06-15
- 1.0.28 (ts2.0) — 2016-09-19
- 1.0.32 — 2023-10-18
- 1.0.31 — 2023-09-15
- 1.0.27 — 2016-07-14
- 1.0.26-alpha — 2016-07-08
- 1.0.25-alpha — 2016-07-04
- 1.0.24-alpha — 2016-07-02
- 1.0.23-alpha — 2016-07-01
- 1.0.22-alpha — 2016-07-01
- 1.0.21-alpha — 2016-05-25
- 1.0.20-alpha — 2016-05-20
- … 2 more at https://npm.io/package/@types/jquery.timeago/versions

## README

# Installation
> `npm install --save @types/jquery.timeago`

# Summary
This package contains type definitions for jquery.timeago (http://timeago.yarp.com/).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jquery.timeago.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jquery.timeago/index.d.ts)
````ts
/// <reference types="jquery"/>

interface TimeagoSetings {
    refreshMillis?: number | undefined;
    allowFuture?: boolean | undefined;
    strings?: {
        prefixAgo?: string | undefined;
        prefixFromNow?: string | undefined;
        suffixAgo?: string | undefined;
        suffixFromNow?: string | undefined;

        // Those can be string or Function
        seconds?: any;
        minute?: any;
        minutes?: any;
        hour?: any;
        hours?: any;
        day?: any;
        days?: any;
        month?: any;
        months?: any;
        year?: any;
        years?: any;

        wordSeparator?: string | undefined;
        numbers?: any[] | undefined;
    } | undefined;
}

interface TimeagoStatic {
    (timestamp: Date): string;
    (timestamp: number): string;
    (timestamp: string): string;
    (timestamp: Element): string;
    (timestamp: JQuery): string;
    settings: TimeagoSetings;
    inWords(distanceMillis: Date): string;
    inWords(distanceMillis: number): string;
    parse(iso8601: string): Date;
    datetime(element: Element): Date;
    datetime(element: JQuery): Date;
    isTime(element: Element): boolean;
    isTime(element: JQuery): boolean;
}

interface Timeago {
    (): JQuery;
}

interface JQueryStatic {
    timeago: TimeagoStatic;
}

interface JQuery {
    timeago: Timeago;
}

````

### Additional Details
 * Last updated: Tue, 30 Jan 2024 21:35:45 GMT
 * Dependencies: [@types/jquery](https://npmjs.com/package/@types/jquery)

# Credits
These definitions were written by [François Guillot](http://fguillot.developpez.com/).

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