diff --git a/package.json b/package.json index c384de6..a686017 100755 --- a/package.json +++ b/package.json @@ -59,5 +59,5 @@ "test:watch": "jest --updateSnapshot --watchAll" }, "types": "dist/index.d.ts", - "version": "0.6.0" + "version": "0.6.1" } diff --git a/src/index.ts b/src/index.ts index 5f75d90..0ac15ca 100755 --- a/src/index.ts +++ b/src/index.ts @@ -1,12 +1,9 @@ export type { ClosestKeyDesc, - Compared, EqualityFn, KeyType, Node, Options, - OpStatus, - Status, TrieableNode, TrieableNodeKeyMapping } from './main'; @@ -29,4 +26,9 @@ export const util = { toArray }; -export { default as default } from './main'; +export { + Compared, + default as default, + OpStatus, + Status, +} from './main'; diff --git a/src/main.ts b/src/main.ts index 4717e90..6fc64d7 100755 --- a/src/main.ts +++ b/src/main.ts @@ -6,7 +6,7 @@ export interface Options { sorted? : boolean; }; -export enum Compared { +export const enum Compared { EQ = 0, GT = 1, LT = -1 @@ -17,12 +17,12 @@ export interface ClosestKeyDesc { index : number; }; -export enum OpStatus { +export const enum OpStatus { FAILED = 'FAILED', SUCCESSFUL = 'SUCCESSFUL' }; -export enum Status { +export const enum Status { NOOP = 'NOOP', REMOVED = 'REMOVED', UPDATED = 'UPDATED'