
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy 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 174 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 0 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
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.