Coder Social home page Coder Social logo

spacingbat3 / disconnection Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 0.0 635 KB

A pack of WebSocket Server and IPC to handle Discord cross-process communication.

Home Page: https://spacingbat3.github.io/DisConnection/

License: ISC License

TypeScript 100.00%
discord discord-rpc ipc webcord websocket arrpc rpc rpc-server discord-rpc-server

disconnection's People

Contributors

spacingbat3 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

disconnection's Issues

error TS2748: Cannot access ambient const enums when 'isolatedModules' is enabled

In MacOS Monterey when attempting to build WebCord:

> [email protected] build
> tsc
sources/code/main/modules/socket.ts:43:14 - error TS2748: Cannot access ambient const enums when 'isolatedModules' is enabled.
43       return WebSocketClose.TryAgainLater;
                ~~~~~~~~~~~~~~

sources/code/main/modules/socket.ts:91:29 - error TS2748: Cannot access ambient const enums when 'isolatedModules' is enabled.
91       return Promise.reject(WebSocketClose.TryAgainLater);
                               ~~~~~~~~~~~~~~

Found 2 errors in the same file, starting at: sources/code/main/modules/socket.ts:43

Error looks similar to this: vitejs/vite#5814

but forking and setting preserveConstEnums to false as suggested in the referenced issue results in the following output:

> [email protected] build
> tsc

sources/code/main/modules/socket.ts:2:51 - error TS2307: Cannot find module '@hainesdata/disconnection' or its corresponding type declarations.
2 import { WebSocket, HookFn, WebSocketClose } from "@hainesdata/disconnection";
                                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                    
sources/code/main/modules/socket.ts:38:29 - error TS7006: Parameter 'details' implicitly has an 'any' type.
38   void server.details?.then(details => server.log(l10n.client.log.listenPort.replace("%s",kolor.underline(kolor.blueBright("%s"))), details.port));
                               ~~~~~~~

sources/code/main/modules/socket.ts:39:79 - error TS7006: Parameter 'parsedData' implicitly has an 'any' type.
39   const hookDialog: HookFn<"GUILD_TEMPLATE_BROWSER"|"INVITE_BROWSER"> = async(parsedData, origin) => {
                                                                                 ~~~~~~~~~~

sources/code/main/modules/socket.ts:39:91 - error TS7006: Parameter 'origin' implicitly has an 'any' type.
39   const hookDialog: HookFn<"GUILD_TEMPLATE_BROWSER"|"INVITE_BROWSER"> = async(parsedData, origin) => {
                                                                                             ~~~~~~

sources/code/main/modules/socket.ts:81:40 - error TS7006: Parameter 'parsedData' implicitly has an 'any' type.
81   server.addHook("DEEP_LINK_CHANNEL", (parsedData) => {
                                          ~~~~~~~~~~
                                          
Found 5 errors in the same file, starting at: sources/code/main/modules/socket.ts:2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.