scuroguardiano / dark-nova Goto Github PK
View Code? Open in Web Editor NEWOGame private server written in Typescript for node.js!
License: MIT License
OGame private server written in Typescript for node.js!
License: MIT License
Hey i come from the childhood from Ogame, i already develop during free time with NodeJS if you want collaborate just add me on Discord enkos#7573
$ npm run dev
> dark-nova@0.0.7 dev /home/mpm/dev/dark-nova
> tsc --project ./tsconfig.json && node index --env development
src/server.ts:68:61 - error TS2769: No overload matches this call.
Overload 1 of 6, '(port: number, hostname: string, backlog: number, callback?: (...args: any[]) => void): Server', gave the following error.
Argument of type 'Function' is not assignable to parameter of type 'number'.
Overload 2 of 6, '(port: number, hostname: string, callback?: (...args: any[]) => void): Server', gave the following error.
Argument of type 'Function' is not assignable to parameter of type '(...args: any[]) => void'.
Type 'Function' provides no match for the signature '(...args: any[]): void'.
68 this.server = this.app.listen(this.port, this.host, callback);
~~~~~~~~
src/server.ts:76:31 - error TS2345: Argument of type 'Function' is not assignable to parameter of type '(err?: Error) => void'.
Type 'Function' provides no match for the signature '(err?: Error): void'.
76 this.server.close(cb);
~~
Found 2 errors.
Additional info:
node v8.10.0
npm v6.11.3
Using WSL (Linux on Windows)
I also ran into this error, but I bypassed that by setting skipLibCheck true in tsconfig.json, and I assume that wasn't relate to this issue.
If typescript isn't installed as a dependency the build script relies on the user's installed version which can cause issues. Might be related to #4
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.