Make exports consistent (#269)

* Make exports consistent

* Cleanup trie impl
This commit is contained in:
Jaco Greeff
2018-12-09 13:25:14 +01:00
committed by GitHub
parent 23ced723df
commit cab0713f33
21 changed files with 120 additions and 259 deletions
+5 -11
View File
@@ -2,11 +2,6 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import compactAddLength from './addLength';
import compactStripLength from './stripLength';
import compactFromU8a from './fromU8a';
import compactToU8a from './toU8a';
/**
* @description
* Encoding and decoding of parity-codec compact numbers. The codec is created
@@ -27,9 +22,8 @@ import compactToU8a from './toU8a';
*
* Note: we use *LOW BITS* of the LSB in LE encoding to encode the 2 bit key.
*/
export {
compactAddLength,
compactFromU8a,
compactStripLength,
compactToU8a
};
export { default as compactAddLength } from './addLength';
export { default as compactStripLength } from './stripLength';
export { default as compactFromU8a } from './fromU8a';
export { default as compactToU8a } from './toU8a';