spacingbat3 / disconnection Goto Github PK
View Code? Open in Web Editor NEWA pack of WebSocket Server and IPC to handle Discord cross-process communication.
Home Page: https://spacingbat3.github.io/DisConnection/
License: ISC License
A pack of WebSocket Server and IPC to handle Discord cross-process communication.
Home Page: https://spacingbat3.github.io/DisConnection/
License: ISC License
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.