From 2e0dc263ac030c1f8129236ce9044ce51beb6d4d Mon Sep 17 00:00:00 2001 From: Toshit Chawda Date: Sun, 7 Jul 2024 15:34:40 -0700 Subject: [PATCH] export all types in one file --- rollup.config.js | 2 +- src/index.ts | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 src/index.ts diff --git a/rollup.config.js b/rollup.config.js index a95e33d..1dfcffc 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -28,7 +28,7 @@ const configs = [ plugins: commonPlugins(), }, { - input: './src/client.ts', + input: './src/index.ts', output: { file: 'dist/client.js', format: 'esm', diff --git a/src/index.ts b/src/index.ts new file mode 100644 index 0000000..ca2466f --- /dev/null +++ b/src/index.ts @@ -0,0 +1,10 @@ +export * from './baretypes'; +export * from './client'; +export * from './connection'; +export { BareClient as default } from './client'; +export { WebSocketFields } from "./snapshot"; + +export type * from './baretypes'; +export type * from './client'; +export type * from './connection'; +export type * from "./snapshot";