UNPKG

wechaty-grpc

Version:
43 lines (39 loc) 1.56 kB
/** * 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_grpc_pb.js' export * from '../../out/wechaty/puppet_pb.js'