@types/jquery.livestampjs
TypeScript icon, indicating that this package has built-in type declarations

0.0.41 • Public • Published

Installation

npm install --save @types/jquery.livestampjs

Summary

This package contains type definitions for jquery.livestampjs (http://mattbradley.github.com/livestampjs/).

Details

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

index.d.ts

// A simple, unobtrusive jQuery plugin that provides auto-updating timeago text to your timestamped HTML elements using Moment.js.

/// <reference types="jquery"/>
/// <reference types="moment" />

import * as moment from "moment";

export as namespace LivestampGlobal;

export = LivestampGlobal;

interface LivestampGlobal {
    update(): void;
    pause(): void;
    resume(): void;
    interval(): number;
    interval(interval: number): void;
}

declare global {
    interface JQueryStatic {
        livestamp: LivestampGlobal;
    }

    interface JQuery {
        livestamp(date: Date): JQuery;
        livestamp(moment: moment.Moment): JQuery;
        livestamp(timestamp: number): JQuery;
        livestamp(timestamp: string): JQuery;
    }
}

Additional Details

Credits

These definitions were written by Vincent Bortone.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/jquery.livestampjs

Weekly Downloads

0

Version

0.0.41

License

MIT

Unpacked Size

4.3 kB

Total Files

5

Last publish

Collaborators

  • types