@@ -601,6 +601,10 @@ interface DateConstructor {
601601 sec ?: number ,
602602 ms ?: number ,
603603 ) : Date
604+ /**
605+ * The now() method returns the number of milliseconds that have passed since midnight January 1, 1970 UTC.
606+ */
607+ now ( ) : number
604608}
605609declare const Date : DateConstructor
606610
@@ -2624,25 +2628,55 @@ interface XML {
26242628 */
26252629interface XMLList { }
26262630declare const XMLList : XMLList
2627- type UnitNameAbbrev = 'in' | 'ft' | 'yd' | 'mi' | 'mm' | 'cm' | 'm' | 'km' |
2628- 'pt' | 'pc' | 'tpt' | 'tpc' | 'ci' | 'px' | '%'
2629-
2630- type UnitName = UnitNameAbbrev |
2631- 'inch' | 'inches' |
2632- 'foot' | 'feet' |
2633- 'yard' | 'yards' |
2634- 'mile' | 'miles' |
2635- 'millimeter' | 'millimeters' |
2636- 'centimeter' | 'centimeters' |
2637- 'meter' | 'meters' |
2638- 'kilometer' | 'kilometers' |
2639- 'point' | 'points' |
2640- 'pica' | 'picas' |
2641- 'traditional point' | 'traditional points' |
2642- 'traditional pica' | 'traditional picas' |
2643- 'cicero' | 'ciceros' |
2644- 'pixel' | 'pixels' |
2645- 'percent' | 'percent'
2631+ type UnitNameAbbrev =
2632+ | "in"
2633+ | "ft"
2634+ | "yd"
2635+ | "mi"
2636+ | "mm"
2637+ | "cm"
2638+ | "m"
2639+ | "km"
2640+ | "pt"
2641+ | "pc"
2642+ | "tpt"
2643+ | "tpc"
2644+ | "ci"
2645+ | "px"
2646+ | "%"
2647+
2648+ type UnitName =
2649+ | UnitNameAbbrev
2650+ | "inch"
2651+ | "inches"
2652+ | "foot"
2653+ | "feet"
2654+ | "yard"
2655+ | "yards"
2656+ | "mile"
2657+ | "miles"
2658+ | "millimeter"
2659+ | "millimeters"
2660+ | "centimeter"
2661+ | "centimeters"
2662+ | "meter"
2663+ | "meters"
2664+ | "kilometer"
2665+ | "kilometers"
2666+ | "point"
2667+ | "points"
2668+ | "pica"
2669+ | "picas"
2670+ | "traditional point"
2671+ | "traditional points"
2672+ | "traditional pica"
2673+ | "traditional picas"
2674+ | "cicero"
2675+ | "ciceros"
2676+ | "pixel"
2677+ | "pixels"
2678+ | "percent"
2679+ | "percent"
26462680
26472681interface UnitValueConstructor {
26482682 readonly prototype : UnitValue
@@ -2673,7 +2707,7 @@ interface UnitValue {
26732707 /**
26742708 * The unit name.
26752709 */
2676- readonly type : UnitNameAbbrev | '?'
2710+ readonly type : UnitNameAbbrev | "?"
26772711
26782712 /**
26792713 * The numeric value.
@@ -2696,13 +2730,9 @@ interface UnitValue {
26962730/**
26972731 * Only for TypeScript compatibility
26982732 */
2699- interface CallableFunction extends Function {
2700-
2701- }
2702-
2703- interface NewableFunction extends Function {
2733+ interface CallableFunction extends Function { }
27042734
2705- }
2735+ interface NewableFunction extends Function { }
27062736
27072737interface IArguments {
27082738 [ index : number ] : any
0 commit comments