![Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility](https://cdn.sanity.io/images/cgdhsj6q/production/97774ea8c88cc8f4bed2766c31994ebc38116948-1664x1366.png?w=400&fit=max&auto=format)
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@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 340 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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.