Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@ragempcommunity/types-server
Advanced tools
Remember to 🌟 this GitHub if you 💖 it.
This package contains types definitions for RAGE:MP server-side module.
SERVER-SIDE
:fire: Use github:ragempcommunity/ragemp-types#types-server
to latest build
# With npm
npm i --save-dev @ragempcommunity/types-server
# With yarn
yarn add -D @ragempcommunity/types-server
# With pnpm
pnpm add -D @ragempcommunity/types-server
To make these types detectable, you need to add the
types
property below totsconfig.json
on each side of your project.
// e.g server-side
{
"compilerOptions": {
"types": ["{RELATIVE_PATH_TO_NODE_MODULES}/@ragempcommunity/types-server"]
}
}
mp.Player.prototype.myMethod = function myMethod() {
// my method logic
};
// Usage
mp.events.add('playerReady', (player) => {
player.myProperty = 1;
player.myMethod();
});
// @types/index.d.ts
declare global {
interface PlayerMp {
myProperty: number;
myMethod(): void;
}
}
export {};
mp.events.add('playerReady', (player) => {
player.myProperty = 1;
player.myMethod = function myMethod() {
// my method logic
};
});
// @types/index.d.ts
declare global {
interface PlayerMp {
myProperty: number;
myMethod(): void;
}
}
export {};
See: RAGEMP Typescript Boilerplate
To contribute to this repository, feel free to create a new fork of the repository and submit a pull request.
main
branch.This project is licensed under the MIT License — see the LICENSE file for details.
FAQs
Types definitions for RAGE:MP server-side module
The npm package @ragempcommunity/types-server receives a total of 56 weekly downloads. As such, @ragempcommunity/types-server popularity was classified as not popular.
We found that @ragempcommunity/types-server demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.