Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@altv/types-shared

altmp3.3kMIT16.2.4TypeScript support: included

This package contains types definitions for alt:V JS module shared types.

altmp, altv, node, node-module, js-module, gta, gta5, gtav

readme

altv-types

This repository contains types definitions for the alt:V JavaScript modules.

Installation

Client-side

# 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

# 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

{
  "compilerOptions": {
    "typeRoots": ["./node_modules/@types", "./node_modules/@altv"]
  }
}