From 7bdbaa5a6e65161884f7490d77611a2638dee0d7 Mon Sep 17 00:00:00 2001 From: Oscar Busk Date: Thu, 14 May 2020 00:37:10 +0200 Subject: [PATCH] chore: Don't use "export * from" to avoid required helper methods * https://github.com/microsoft/TypeScript/wiki/Breaking-Changes#exports-are-hoisted-and-initially-assigned * https://github.com/microsoft/TypeScript/pull/37093 --- src/index.ts | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/src/index.ts b/src/index.ts index 3402bf7..dc69644 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,6 +1,15 @@ -export * from "./constants"; -export { Encoding } from "./Encoding"; -export { Endianness } from "./Endianness"; -export * from "./WalkableBuffer"; -export { WalkableBuffer as default } from "./WalkableBuffer"; +export { + BYTE, + DEFAULT_ENCODING, + DEFAULT_ENDIANNESS, + DEFAULT_INITIAL_CURSOR, + DEFAULT_SIGNED, + LONG, + LONGLONG, + OCTET, + SHORT, +} from "./constants"; +export { Encoding, isEncoding } from "./Encoding"; +export { Endianness, isEndianness } from "./Endianness"; +export { WalkableBuffer as default, WalkableBuffer } from "./WalkableBuffer"; export { WalkableBufferOptions } from "./WalkableBufferOptions";