DefinitelyTyped/types/easydate/index.d.ts
2019-03-13 17:35:26 +05:30

15 lines
422 B
TypeScript

// Type definitions for easydate 2.2
// Project: https://github.com/roryrjb/easydate
// Definitions by: Satya Rohith <https://github.com/satyarohith>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export = easydate;
interface DateConfig {
setDate?: string;
timeZone?: 'utc' | 'local';
adjust?: boolean;
}
declare function easydate(pattern: string, config?: DateConfig | string): string;