-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathpuppet.cjs.d.ts
More file actions
43 lines (40 loc) · 1.58 KB
/
puppet.cjs.d.ts
File metadata and controls
43 lines (40 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/**
* Huan(202108)
*
* Re-exporting namespace declarations in ES6 ambient declaration #4336
* https://github.com/microsoft/TypeScript/issues/4336
*/
/**
* Huan(202108): I want to `declare namespace puppet {...}`
* but it seemss the `export * from '../out/...js` is not working
*
* So I export them on the top level,
* then import them in another `puppet.js` file
* with the `puppet` namespace
*
* This is because the ESM module system need to do the following things
* when import a CJS module:
*
* ```ts
* import pkg from './cjs-pkg'
* const puppet = pkg['puppet']
* ```
*/
export * from '../../out/wechaty/deprecated/file-box_pb.js'
export * from '../../out/wechaty/puppet/base_pb.js'
export * from '../../out/wechaty/puppet/contact_pb.js'
export * from '../../out/wechaty/puppet/download-upload_pb.js'
export * from '../../out/wechaty/puppet/event_pb.js'
export * from '../../out/wechaty/puppet/friendship_pb.js'
export * from '../../out/wechaty/puppet/location_pb.js'
export * from '../../out/wechaty/puppet/message_pb.js'
export * from '../../out/wechaty/puppet/mini-program_pb.js'
export * from '../../out/wechaty/puppet/referrer_pb.js'
export * from '../../out/wechaty/puppet/room_pb.js'
export * from '../../out/wechaty/puppet/room-invitation_pb.js'
export * from '../../out/wechaty/puppet/room-member_pb.js'
export * from '../../out/wechaty/puppet/tag_pb.js'
export * from '../../out/wechaty/puppet/url-link_pb.js'
export * from '../../out/wechaty/puppet/channel_pb.js'
export * from '../../out/wechaty/puppet_grpc_pb.js'
export * from '../../out/wechaty/puppet_pb.js'