]> git.wincent.com - hextrapolate.git/commitdiff
Correct nonsense Flow type
authorGreg Hurrell <greg@hurrell.net>
Thu, 1 Jun 2017 15:03:10 +0000 (08:03 -0700)
committerGreg Hurrell <greg@hurrell.net>
Thu, 1 Jun 2017 15:03:10 +0000 (08:03 -0700)
Which reminds me, should actually wire up Flow again.

src/joinDigits.js

index 9464f8a6345a82fe542409cfa8d7ef130668e563..f31460e2713f8213418bc79d94514407d406fc96 100644 (file)
@@ -7,7 +7,7 @@
 
 import DIGITS from './DIGITS';
 
 
 import DIGITS from './DIGITS';
 
-function encode(number: string, base: number) {
+function encode(number: number, base: number) {
   if (base > 36 && base <= 62) {
     // This branch really only ever called for serializing to the URL.
     return DIGITS[number - 1];
   if (base > 36 && base <= 62) {
     // This branch really only ever called for serializing to the URL.
     return DIGITS[number - 1];