git.wincent.com
/
hextrapolate.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68f60ef
)
Correct nonsense Flow type
author
Greg Hurrell <greg@hurrell.net>
Thu, 1 Jun 2017 15:03:10 +0000
(08:03 -0700)
committer
Greg 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
patch
|
blob
|
history
diff --git
a/src/joinDigits.js
b/src/joinDigits.js
index 9464f8a6345a82fe542409cfa8d7ef130668e563..f31460e2713f8213418bc79d94514407d406fc96 100644
(file)
--- a/
src/joinDigits.js
+++ b/
src/joinDigits.js
@@
-7,7
+7,7
@@
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];