File
Blob: src/node/internal/messagechannel.d.ts
| 1 | // Copyright (c) 2017-2022 Cloudflare, Inc. |
| 2 | // Licensed under the Apache 2.0 license found in the LICENSE file or at: |
| 3 | // https://opensource.org/licenses/Apache-2.0 |
| 4 | |
| 5 | // Type definitions for cloudflare-internal:messagechannel |
| 6 | // This internal module exposes MessageChannel and MessagePort for use by |
| 7 | // built-in modules like node:worker_threads, independent of the |
| 8 | // expose_global_message_channel compatibility flag. |
| 9 | |
| 10 | declare namespace _default { |
| 11 | const MessageChannel: typeof globalThis.MessageChannel; |
| 12 | const MessagePort: typeof globalThis.MessagePort; |
| 13 | } |
| 14 | export default _default; |