https://github.com/altmp/altv-types
Type definitions for the alt:V JavaScript modules.
https://github.com/altmp/altv-types
altv altvmp
Last synced: 27 days ago
JSON representation
Type definitions for the alt:V JavaScript modules.
- Host: GitHub
- URL: https://github.com/altmp/altv-types
- Owner: altmp
- License: mit
- Created: 2020-05-08T17:54:40.000Z (almost 6 years ago)
- Default Branch: release
- Last Pushed: 2025-08-01T17:53:12.000Z (8 months ago)
- Last Synced: 2025-10-14T16:04:22.308Z (5 months ago)
- Topics: altv, altvmp
- Homepage: https://www.npmjs.com/~vadzz
- Size: 3.87 MB
- Stars: 33
- Watchers: 5
- Forks: 71
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# altv-types
This repository contains types definitions for the alt:V JavaScript modules.
# Installation
Client-side
```bash
# With npm
npm i -D @altv/types-shared @altv/types-client @altv/types-natives @altv/types-webview
# With yarn
yarn add -D @altv/types-shared @altv/types-client @altv/types-natives @altv/types-webview
```
Server-side
```bash
# With npm
npm i -D @altv/types-shared @altv/types-server
# With yarn
yarn add -D @altv/types-shared @altv/types-server
```
To make these types detectable, you've to add `typeRoots` property below to your project's `tsconfig.json`
```json
{
"compilerOptions": {
"typeRoots": ["./node_modules/@types", "./node_modules/@altv"]
}
}
```