1.0.34 • Published 1 year ago

@types/jquery.timeago v1.0.34

Weekly downloads
1,070
License
MIT
Repository
github
Last release
1 year ago

Installation

npm install --save @types/jquery.timeago

Summary

This package contains type definitions for jQuery.timeago.js (http://timeago.yarp.com/).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jquery.timeago.

index.d.ts

// Type definitions for jQuery.timeago.js 1.0.2
// Project: http://timeago.yarp.com/
// Definitions by: François Guillot <http://fguillot.developpez.com/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3


/// <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: Thu, 08 Jul 2021 16:22:42 GMT
  • Dependencies: @types/jquery
  • Global values: none

Credits

These definitions were written by François Guillot.

1.0.34

1 year ago

1.0.33

2 years ago

1.0.32

2 years ago

1.0.31

2 years ago

1.0.30

4 years ago

1.0.29

8 years ago

1.0.28

9 years ago

1.0.27

9 years ago

1.0.26-alpha

9 years ago

1.0.25-alpha

9 years ago

1.0.24-alpha

9 years ago

1.0.23-alpha

9 years ago

1.0.22-alpha

9 years ago

1.0.21-alpha

9 years ago

1.0.20-alpha

9 years ago

1.0.15-alpha

9 years ago

1.0.14-alpha

9 years ago