@@ -378,7 +378,9 @@ export class Long {
378378 }
379379
380380 /** This is an alias of {@link Long.compare} */
381- comp = Long . prototype . compare ;
381+ comp ( other : string | number | Long | Timestamp ) : 0 | 1 | - 1 {
382+ return this . compare ( other ) ;
383+ }
382384
383385 /**
384386 * Returns this Long divided by the specified. The result is signed if this Long is signed or unsigned if this Long is unsigned.
@@ -485,7 +487,9 @@ export class Long {
485487 }
486488
487489 /**This is an alias of {@link Long.divide} */
488- div = Long . prototype . divide ;
490+ div ( divisor : string | number | Long | Timestamp ) : Long {
491+ return this . divide ( divisor ) ;
492+ }
489493
490494 /**
491495 * Tests if this Long's value equals the specified's.
@@ -499,7 +503,9 @@ export class Long {
499503 }
500504
501505 /** This is an alias of {@link Long.equals} */
502- eq = Long . prototype . equals ;
506+ eq ( other : string | number | Long | Timestamp ) : boolean {
507+ return this . equals ( other ) ;
508+ }
503509
504510 /** Gets the high 32 bits as a signed integer. */
505511 getHighBits ( ) : number {
@@ -539,17 +545,23 @@ export class Long {
539545 }
540546
541547 /** This is an alias of {@link Long.greaterThan} */
542- gt = Long . prototype . greaterThan ;
548+ gt ( other : string | number | Long | Timestamp ) : boolean {
549+ return this . greaterThan ( other ) ;
550+ }
543551
544552 /** Tests if this Long's value is greater than or equal the specified's. */
545553 greaterThanOrEqual ( other : string | number | Long | Timestamp ) : boolean {
546554 return this . comp ( other ) >= 0 ;
547555 }
548556
549557 /** This is an alias of {@link Long.greaterThanOrEqual} */
550- gte = Long . prototype . greaterThanOrEqual ;
558+ gte ( other : string | number | Long | Timestamp ) : boolean {
559+ return this . greaterThanOrEqual ( other ) ;
560+ }
551561 /** This is an alias of {@link Long.greaterThanOrEqual} */
552- ge = Long . prototype . greaterThanOrEqual ;
562+ ge ( other : string | number | Long | Timestamp ) : boolean {
563+ return this . greaterThan ( other ) ;
564+ }
553565
554566 /** Tests if this Long's value is even. */
555567 isEven ( ) : boolean {
@@ -582,15 +594,19 @@ export class Long {
582594 }
583595
584596 /** This is an alias of {@link Long#lessThan}. */
585- lt = Long . prototype . lessThan ;
597+ lt ( other : string | number | Long | Timestamp ) : boolean {
598+ return this . lessThan ( other ) ;
599+ }
586600
587601 /** Tests if this Long's value is less than or equal the specified's. */
588602 lessThanOrEqual ( other : string | number | Long | Timestamp ) : boolean {
589603 return this . comp ( other ) <= 0 ;
590604 }
591605
592606 /** This is an alias of {@link Long.lessThanOrEqual} */
593- lte = Long . prototype . lessThanOrEqual ;
607+ lte ( other : string | number | Long | Timestamp ) : boolean {
608+ return this . lessThanOrEqual ( other ) ;
609+ }
594610
595611 /** Returns this Long modulo the specified. */
596612 modulo ( divisor : string | number | Long | Timestamp ) : Long {
@@ -611,9 +627,13 @@ export class Long {
611627 }
612628
613629 /** This is an alias of {@link Long.modulo} */
614- mod = Long . prototype . modulo ;
630+ mod ( divisor : string | number | Long | Timestamp ) : Long {
631+ return this . modulo ( divisor ) ;
632+ }
615633 /** This is an alias of {@link Long.modulo} */
616- rem = Long . prototype . modulo ;
634+ rem ( divisor : string | number | Long | Timestamp ) : Long {
635+ return this . modulo ( divisor ) ;
636+ }
617637
618638 /**
619639 * Returns the product of this and the specified Long.
@@ -684,7 +704,9 @@ export class Long {
684704 }
685705
686706 /** This is an alias of {@link Long.multiply} */
687- mul = Long . prototype . multiply ;
707+ mul ( multiplier : string | number | Long | Timestamp ) : Long {
708+ return this . multiply ( multiplier ) ;
709+ }
688710
689711 /** Returns the Negation of this Long's value. */
690712 negate ( ) : Long {
@@ -693,7 +715,9 @@ export class Long {
693715 }
694716
695717 /** This is an alias of {@link Long.negate} */
696- neg = Long . prototype . negate ;
718+ neg ( ) : Long {
719+ return this . negate ( ) ;
720+ }
697721
698722 /** Returns the bitwise NOT of this Long. */
699723 not ( ) : Long {
@@ -706,9 +730,13 @@ export class Long {
706730 }
707731
708732 /** This is an alias of {@link Long.notEquals} */
709- neq = Long . prototype . notEquals ;
733+ neq ( other : string | number | Long | Timestamp ) : boolean {
734+ return this . notEquals ( other ) ;
735+ }
710736 /** This is an alias of {@link Long.notEquals} */
711- ne = Long . prototype . notEquals ;
737+ ne ( other : string | number | Long | Timestamp ) : boolean {
738+ return this . notEquals ( other ) ;
739+ }
712740
713741 /**
714742 * Returns the bitwise OR of this Long and the specified.
@@ -736,7 +764,9 @@ export class Long {
736764 }
737765
738766 /** This is an alias of {@link Long.shiftLeft} */
739- shl = Long . prototype . shiftLeft ;
767+ shl ( numBits : number | Long ) : Long {
768+ return this . shiftLeft ( numBits ) ;
769+ }
740770
741771 /**
742772 * Returns this Long with bits arithmetically shifted to the right by the given amount.
@@ -756,7 +786,9 @@ export class Long {
756786 }
757787
758788 /** This is an alias of {@link Long.shiftRight} */
759- shr = Long . prototype . shiftRight ;
789+ shr ( numBits : number | Long ) : Long {
790+ return this . shiftRight ( numBits ) ;
791+ }
760792
761793 /**
762794 * Returns this Long with bits logically shifted to the right by the given amount.
@@ -782,9 +814,13 @@ export class Long {
782814 }
783815
784816 /** This is an alias of {@link Long.shiftRightUnsigned} */
785- shr_u = Long . prototype . shiftRightUnsigned ;
817+ shr_u ( numBits : number | Long ) : Long {
818+ return this . shiftRightUnsigned ( numBits ) ;
819+ }
786820 /** This is an alias of {@link Long.shiftRightUnsigned} */
787- shru = Long . prototype . shiftRightUnsigned ;
821+ shru ( numBits : number | Long ) : Long {
822+ return this . shiftRightUnsigned ( numBits ) ;
823+ }
788824
789825 /**
790826 * Returns the difference of this and the specified Long.
@@ -797,7 +833,9 @@ export class Long {
797833 }
798834
799835 /** This is an alias of {@link Long.subtract} */
800- sub = Long . prototype . subtract ;
836+ sub ( subtrahend : string | number | Long | Timestamp ) : Long {
837+ return this . subtract ( subtrahend ) ;
838+ }
801839
802840 /** Converts the Long to a 32 bit integer, assuming it is a 32 bit integer. */
803841 toInt ( ) : number {
@@ -925,10 +963,14 @@ export class Long {
925963 }
926964
927965 /** This is an alias of {@link Long.isZero} */
928- eqz = Long . prototype . isZero ;
966+ eqz ( ) : boolean {
967+ return this . isZero ( ) ;
968+ }
929969
930970 /** This is an alias of {@link Long.lessThanOrEqual} */
931- le = Long . prototype . lessThanOrEqual ;
971+ le ( other : string | number | Long | Timestamp ) : boolean {
972+ return this . lessThanOrEqual ( other ) ;
973+ }
932974
933975 /*
934976 ****************************************************************
0 commit comments