Update 'pikaday'

This commit is contained in:
Ryan Cavanaugh
2016-04-27 10:24:45 -07:00
parent d06ecfa6bc
commit cda5c8a4f3
2 changed files with 7 additions and 7 deletions
+5 -4
View File
@@ -3,7 +3,11 @@
// Definitions by: Rudolph Gottesheim <http://midnight-design.at/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../moment/moment.d.ts" />
import * as moment from '../moment';
export as namespace Pikaday;
export = Pikaday;
declare class Pikaday {
el: HTMLElement;
@@ -282,6 +286,3 @@ declare namespace Pikaday {
}
}
declare module "pikaday" {
export = Pikaday;
}
+2 -3
View File
@@ -1,8 +1,7 @@
/// <reference path="../jquery/jquery.d.ts" />
/// <reference path="../moment/moment.d.ts" />
/// <reference path="pikaday.d.ts" />
import * as Pikaday from "pikaday";
import * as Pikaday from "./";
import * as moment from "../moment";
new Pikaday({field: document.getElementById('datepicker')});
new Pikaday({field: $('#datepicker')[0]});