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
- Last updated: Tue, 30 Jan 2024 21:35:45 GMT
- Dependencies: @types/jquery, moment
Credits
These definitions were written by Vincent Bortone.