// Type definitions for Livestamp.js // A simple, unobtrusive jQuery plugin that provides auto-updating timeago text to your timestamped HTML elements using Moment.js. // Project: http://http://mattbradley.github.com/livestampjs/ // Definitions by: Vincent Bortone // Definitions: https://github.com/borisyankov/DefinitelyTyped /// /// interface LivestampGlobal { update(): void; pause(): void; resume(): void; interval(): number; interval(interval: number): void; } interface JQueryStatic { livestamp: LivestampGlobal; } interface JQuery { livestamp(date: Date): JQuery; livestamp(moment: Moment): JQuery; livestamp(timestamp: number): JQuery; livestamp(timestamp: string): JQuery; }