An open API service indexing awesome lists of open source software.

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.

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"]
}
}
```