openimsdk / open-im-sdk-web-wasm

JS SDK for OpenIM Web use by Webassembly of go
https://openim.io
Apache License 2.0
33 stars 46 forks source link

feat: export more types #79

Closed yuyinws closed 4 months ago

yuyinws commented 6 months ago


πŸ” What type of PR is this?

Optimization types. User can import more types from this pkg directly.

After

import { GroupApplicationItem } from 'open-im-sdk-wasm/lib/types/entity'

Before

import { GroupApplicationItem } from 'open-im-sdk-wasm'

πŸ‘€ What this PR does / why we need it:

πŸ…° Which issue(s) this PR fixes:

Fixes #

πŸ“ Special notes for your reviewer:

🎯 Describe how to verify it

πŸ“‘ Additional documentation e.g., RFC, notion, Google docs, usage docs, etc.:

Bloomingg commented 4 months ago

In fact, my original intention is to distinguish between methods, enums, and types.The reason why enum can be imported from the root path is because if not, it will not be compiled.