export all types in one file

This commit is contained in:
Toshit Chawda 2024-07-07 15:34:40 -07:00
parent bc9606e1b8
commit 2e0dc263ac
No known key found for this signature in database
GPG key ID: 91480ED99E2B3D9D
2 changed files with 11 additions and 1 deletions

View file

@ -28,7 +28,7 @@ const configs = [
plugins: commonPlugins(),
},
{
input: './src/client.ts',
input: './src/index.ts',
output: {
file: 'dist/client.js',
format: 'esm',

10
src/index.ts Normal file
View file

@ -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";